Skip to content

Commit 23517a4

Browse files
feat(api): manual updates
1 parent ee6500f commit 23517a4

7 files changed

Lines changed: 37 additions & 47 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 44
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lightspark%2Fgrid-3bb10cd66d5dd370dd6f6c0934f4bcf8b571cd375b09e7bdc1e430335683447c.yml
33
openapi_spec_hash: 8283d72bae0aac6ade01772fda453181
4-
config_hash: 3b251feaa8ec393868ad53388e7bdfa5
4+
config_hash: 5d8241df181a5bbf53d8c8b2ddee1fc2

api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Shared
2+
3+
Types:
4+
5+
- <code><a href="./src/resources/shared.ts">BulkCustomerImportErrorEntry</a></code>
6+
17
# Config
28

39
Types:

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,4 +1117,6 @@ export declare namespace LightsparkGrid {
11171117
type InternalAccountStatusWebhookEvent as InternalAccountStatusWebhookEvent,
11181118
type UnwrapWebhookEvent as UnwrapWebhookEvent,
11191119
};
1120+
1121+
export type BulkCustomerImportErrorEntry = API.BulkCustomerImportErrorEntry;
11201122
}

src/resources/customers/bulk.ts

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../../core/resource';
4+
import * as Shared from '../shared';
45
import { APIPromise } from '../../core/api-promise';
56
import { type Uploadable } from '../../core/uploads';
67
import { RequestOptions } from '../../internal/request-options';
@@ -130,7 +131,7 @@ export interface BulkGetJobStatusResponse {
130131
/**
131132
* Detailed error information for failed entries
132133
*/
133-
errors?: Array<BulkGetJobStatusResponse.Error>;
134+
errors?: Array<Shared.BulkCustomerImportErrorEntry>;
134135
}
135136

136137
export namespace BulkGetJobStatusResponse {
@@ -155,28 +156,6 @@ export namespace BulkGetJobStatusResponse {
155156
*/
156157
total: number;
157158
}
158-
159-
export interface Error {
160-
/**
161-
* Platform customer ID or row number for the failed entry
162-
*/
163-
correlationId: string;
164-
165-
/**
166-
* Error code
167-
*/
168-
code?: string;
169-
170-
/**
171-
* Additional error details
172-
*/
173-
details?: { [key: string]: unknown };
174-
175-
/**
176-
* Error message
177-
*/
178-
message?: string;
179-
}
180159
}
181160

182161
export interface BulkUploadCsvResponse {

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
export * from './shared';
34
export {
45
Config,
56
type CustomerInfoFieldName,

src/resources/shared.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
export interface BulkCustomerImportErrorEntry {
4+
/**
5+
* Platform customer ID or row number for the failed entry
6+
*/
7+
correlationId: string;
8+
9+
/**
10+
* Error code
11+
*/
12+
code?: string;
13+
14+
/**
15+
* Additional error details
16+
*/
17+
details?: { [key: string]: unknown };
18+
19+
/**
20+
* Error message
21+
*/
22+
message?: string;
23+
}

src/resources/webhooks.ts

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { APIResource } from '../core/resource';
44
import * as InvitationsAPI from './invitations';
55
import * as QuotesAPI from './quotes';
66
import * as ReceiverAPI from './receiver';
7+
import * as Shared from './shared';
78
import * as TransactionsAPI from './transactions';
89
import * as TransferInAPI from './transfer-in';
910
import * as CustomersAPI from './customers/customers';
@@ -308,7 +309,7 @@ export namespace BulkUploadWebhookEvent {
308309
/**
309310
* Detailed error information for failed entries
310311
*/
311-
errors?: Array<Data.Error>;
312+
errors?: Array<Shared.BulkCustomerImportErrorEntry>;
312313
}
313314

314315
export namespace Data {
@@ -333,28 +334,6 @@ export namespace BulkUploadWebhookEvent {
333334
*/
334335
total: number;
335336
}
336-
337-
export interface Error {
338-
/**
339-
* Platform customer ID or row number for the failed entry
340-
*/
341-
correlationId: string;
342-
343-
/**
344-
* Error code
345-
*/
346-
code?: string;
347-
348-
/**
349-
* Additional error details
350-
*/
351-
details?: { [key: string]: unknown };
352-
353-
/**
354-
* Error message
355-
*/
356-
message?: string;
357-
}
358337
}
359338
}
360339

0 commit comments

Comments
 (0)