ultracart_rest_api_v2_typescript 4.1.105 → 4.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +6 -2
- package/dist/apis/BulkApi.d.ts +199 -0
- package/dist/apis/BulkApi.js +458 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BulkJob.d.ts +143 -0
- package/dist/models/BulkJob.js +103 -0
- package/dist/models/BulkJobRequest.d.ts +57 -0
- package/dist/models/BulkJobRequest.js +63 -0
- package/dist/models/BulkJobResponse.d.ts +59 -0
- package/dist/models/BulkJobResponse.js +62 -0
- package/dist/models/BulkJobsResponse.d.ts +65 -0
- package/dist/models/BulkJobsResponse.js +64 -0
- package/dist/models/BulkRecord.d.ts +84 -0
- package/dist/models/BulkRecord.js +77 -0
- package/dist/models/BulkRecordsResponse.d.ts +65 -0
- package/dist/models/BulkRecordsResponse.js +64 -0
- package/dist/models/BulkUploadUrlResponse.d.ts +76 -0
- package/dist/models/BulkUploadUrlResponse.js +67 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/BulkApi.ts +471 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BulkJob.ts +211 -0
- package/src/models/BulkJobRequest.ts +101 -0
- package/src/models/BulkJobResponse.ts +124 -0
- package/src/models/BulkJobsResponse.ts +132 -0
- package/src/models/BulkRecord.ts +135 -0
- package/src/models/BulkRecordsResponse.ts +132 -0
- package/src/models/BulkUploadUrlResponse.ts +142 -0
- package/src/models/index.ts +7 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@ README.md
|
|
|
4
4
|
package.json
|
|
5
5
|
src/apis/AffiliateApi.ts
|
|
6
6
|
src/apis/AutoOrderApi.ts
|
|
7
|
+
src/apis/BulkApi.ts
|
|
7
8
|
src/apis/ChannelPartnerApi.ts
|
|
8
9
|
src/apis/CheckoutApi.ts
|
|
9
10
|
src/apis/ConversationApi.ts
|
|
@@ -85,6 +86,13 @@ src/models/Browser.ts
|
|
|
85
86
|
src/models/BrowserDevice.ts
|
|
86
87
|
src/models/BrowserOS.ts
|
|
87
88
|
src/models/BrowserUserAgent.ts
|
|
89
|
+
src/models/BulkJob.ts
|
|
90
|
+
src/models/BulkJobRequest.ts
|
|
91
|
+
src/models/BulkJobResponse.ts
|
|
92
|
+
src/models/BulkJobsResponse.ts
|
|
93
|
+
src/models/BulkRecord.ts
|
|
94
|
+
src/models/BulkRecordsResponse.ts
|
|
95
|
+
src/models/BulkUploadUrlResponse.ts
|
|
88
96
|
src/models/Cart.ts
|
|
89
97
|
src/models/CartAffiliate.ts
|
|
90
98
|
src/models/CartAffirmCheckoutResponse.ts
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.109
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.109 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,10 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.109 | 07/03/2026 | bulk import endpoints (alpha) |
|
|
89
|
+
| 4.1.108 | 07/03/2026 | bulk import endpoints (alpha) |
|
|
90
|
+
| 4.1.107 | 07/03/2026 | bulk import endpoints (alpha) |
|
|
91
|
+
| 4.1.106 | 07/03/2026 | bulk import endpoints (alpha) |
|
|
88
92
|
| 4.1.105 | 07/01/2026 | conversation - updatePbxCall support additional zoho desk values |
|
|
89
93
|
| 4.1.104 | 06/30/2026 | conversations - customer snapshot zoho desk tickets included |
|
|
90
94
|
| 4.1.103 | 06/18/2026 | affiliate api alpha |
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { BulkJobRequest, BulkJobResponse, BulkJobsResponse, BulkRecordsResponse, BulkUploadUrlResponse } from '../models';
|
|
14
|
+
export interface BulkCancelJobRequest {
|
|
15
|
+
object: string;
|
|
16
|
+
jobId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface BulkGenerateUploadUrlRequest {
|
|
19
|
+
object: string;
|
|
20
|
+
}
|
|
21
|
+
export interface BulkGetJobRequest {
|
|
22
|
+
object: string;
|
|
23
|
+
jobId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface BulkGetJobRecordsRequest {
|
|
26
|
+
object: string;
|
|
27
|
+
jobId: string;
|
|
28
|
+
status?: string;
|
|
29
|
+
cursor?: string;
|
|
30
|
+
limit?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface BulkListJobsRequest {
|
|
33
|
+
object: string;
|
|
34
|
+
status?: string;
|
|
35
|
+
cursor?: string;
|
|
36
|
+
limit?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface BulkSubmitJobRequest {
|
|
39
|
+
object: string;
|
|
40
|
+
bulkJob: BulkJobRequest;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* BulkApi - interface
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
* @interface BulkApiInterface
|
|
47
|
+
*/
|
|
48
|
+
export interface BulkApiInterface {
|
|
49
|
+
/**
|
|
50
|
+
* Queued jobs cancel immediately (200). In-progress jobs finalize as cancelled between records (202); already-processed records stand.
|
|
51
|
+
* @summary Request cancellation of a bulk job
|
|
52
|
+
* @param {string} object Object type
|
|
53
|
+
* @param {string} jobId The bulk job id
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
* @memberof BulkApiInterface
|
|
57
|
+
*/
|
|
58
|
+
bulkCancelJobRaw(requestParameters: BulkCancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
* Queued jobs cancel immediately (200). In-progress jobs finalize as cancelled between records (202); already-processed records stand.
|
|
61
|
+
* Request cancellation of a bulk job
|
|
62
|
+
*/
|
|
63
|
+
bulkCancelJob(requestParameters: BulkCancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a presigned S3 PUT URL the merchant uploads NDJSON to, plus the s3_key to pass to submit.
|
|
66
|
+
* @summary Generate a presigned upload URL for a bulk payload
|
|
67
|
+
* @param {string} object Object type
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
* @memberof BulkApiInterface
|
|
71
|
+
*/
|
|
72
|
+
bulkGenerateUploadUrlRaw(requestParameters: BulkGenerateUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkUploadUrlResponse>>;
|
|
73
|
+
/**
|
|
74
|
+
* Returns a presigned S3 PUT URL the merchant uploads NDJSON to, plus the s3_key to pass to submit.
|
|
75
|
+
* Generate a presigned upload URL for a bulk payload
|
|
76
|
+
*/
|
|
77
|
+
bulkGenerateUploadUrl(requestParameters: BulkGenerateUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkUploadUrlResponse>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Retrieve a bulk job\'s status and counts
|
|
81
|
+
* @param {string} object Object type
|
|
82
|
+
* @param {string} jobId The bulk job id
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
* @memberof BulkApiInterface
|
|
86
|
+
*/
|
|
87
|
+
bulkGetJobRaw(requestParameters: BulkGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkJobResponse>>;
|
|
88
|
+
/**
|
|
89
|
+
* Retrieve a bulk job\'s status and counts
|
|
90
|
+
*/
|
|
91
|
+
bulkGetJob(requestParameters: BulkGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkJobResponse>;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @summary Paginate a bulk job\'s per-record results
|
|
95
|
+
* @param {string} object Object type
|
|
96
|
+
* @param {string} jobId The bulk job id
|
|
97
|
+
* @param {string} [status] Filter by per-record result status (success, failed, duplicate)
|
|
98
|
+
* @param {string} [cursor] Opaque pagination cursor
|
|
99
|
+
* @param {number} [limit] Page size (default 100, max 1000)
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof BulkApiInterface
|
|
103
|
+
*/
|
|
104
|
+
bulkGetJobRecordsRaw(requestParameters: BulkGetJobRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkRecordsResponse>>;
|
|
105
|
+
/**
|
|
106
|
+
* Paginate a bulk job\'s per-record results
|
|
107
|
+
*/
|
|
108
|
+
bulkGetJobRecords(requestParameters: BulkGetJobRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkRecordsResponse>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @summary List bulk jobs for the calling merchant
|
|
112
|
+
* @param {string} object Object type
|
|
113
|
+
* @param {string} [status] Filter by job status
|
|
114
|
+
* @param {string} [cursor] Opaque pagination cursor
|
|
115
|
+
* @param {number} [limit] Page size (default 100, max 1000)
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
* @memberof BulkApiInterface
|
|
119
|
+
*/
|
|
120
|
+
bulkListJobsRaw(requestParameters: BulkListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkJobsResponse>>;
|
|
121
|
+
/**
|
|
122
|
+
* List bulk jobs for the calling merchant
|
|
123
|
+
*/
|
|
124
|
+
bulkListJobs(requestParameters: BulkListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkJobsResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Submits a job referencing a previously uploaded NDJSON object. One active job per merchant; additional submissions queue. The bulk surface is write-only (insert / upsert); it has no bulk read or export operation.
|
|
127
|
+
* @summary Submit a bulk job
|
|
128
|
+
* @param {string} object Object type
|
|
129
|
+
* @param {BulkJobRequest} bulkJob Bulk job submission
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
* @memberof BulkApiInterface
|
|
133
|
+
*/
|
|
134
|
+
bulkSubmitJobRaw(requestParameters: BulkSubmitJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkJobResponse>>;
|
|
135
|
+
/**
|
|
136
|
+
* Submits a job referencing a previously uploaded NDJSON object. One active job per merchant; additional submissions queue. The bulk surface is write-only (insert / upsert); it has no bulk read or export operation.
|
|
137
|
+
* Submit a bulk job
|
|
138
|
+
*/
|
|
139
|
+
bulkSubmitJob(requestParameters: BulkSubmitJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkJobResponse>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
export declare class BulkApi extends runtime.BaseAPI implements BulkApiInterface {
|
|
145
|
+
/**
|
|
146
|
+
* Queued jobs cancel immediately (200). In-progress jobs finalize as cancelled between records (202); already-processed records stand.
|
|
147
|
+
* Request cancellation of a bulk job
|
|
148
|
+
*/
|
|
149
|
+
bulkCancelJobRaw(requestParameters: BulkCancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
150
|
+
/**
|
|
151
|
+
* Queued jobs cancel immediately (200). In-progress jobs finalize as cancelled between records (202); already-processed records stand.
|
|
152
|
+
* Request cancellation of a bulk job
|
|
153
|
+
*/
|
|
154
|
+
bulkCancelJob(requestParameters: BulkCancelJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Returns a presigned S3 PUT URL the merchant uploads NDJSON to, plus the s3_key to pass to submit.
|
|
157
|
+
* Generate a presigned upload URL for a bulk payload
|
|
158
|
+
*/
|
|
159
|
+
bulkGenerateUploadUrlRaw(requestParameters: BulkGenerateUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkUploadUrlResponse>>;
|
|
160
|
+
/**
|
|
161
|
+
* Returns a presigned S3 PUT URL the merchant uploads NDJSON to, plus the s3_key to pass to submit.
|
|
162
|
+
* Generate a presigned upload URL for a bulk payload
|
|
163
|
+
*/
|
|
164
|
+
bulkGenerateUploadUrl(requestParameters: BulkGenerateUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkUploadUrlResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieve a bulk job\'s status and counts
|
|
167
|
+
*/
|
|
168
|
+
bulkGetJobRaw(requestParameters: BulkGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkJobResponse>>;
|
|
169
|
+
/**
|
|
170
|
+
* Retrieve a bulk job\'s status and counts
|
|
171
|
+
*/
|
|
172
|
+
bulkGetJob(requestParameters: BulkGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkJobResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Paginate a bulk job\'s per-record results
|
|
175
|
+
*/
|
|
176
|
+
bulkGetJobRecordsRaw(requestParameters: BulkGetJobRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkRecordsResponse>>;
|
|
177
|
+
/**
|
|
178
|
+
* Paginate a bulk job\'s per-record results
|
|
179
|
+
*/
|
|
180
|
+
bulkGetJobRecords(requestParameters: BulkGetJobRecordsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkRecordsResponse>;
|
|
181
|
+
/**
|
|
182
|
+
* List bulk jobs for the calling merchant
|
|
183
|
+
*/
|
|
184
|
+
bulkListJobsRaw(requestParameters: BulkListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkJobsResponse>>;
|
|
185
|
+
/**
|
|
186
|
+
* List bulk jobs for the calling merchant
|
|
187
|
+
*/
|
|
188
|
+
bulkListJobs(requestParameters: BulkListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkJobsResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* Submits a job referencing a previously uploaded NDJSON object. One active job per merchant; additional submissions queue. The bulk surface is write-only (insert / upsert); it has no bulk read or export operation.
|
|
191
|
+
* Submit a bulk job
|
|
192
|
+
*/
|
|
193
|
+
bulkSubmitJobRaw(requestParameters: BulkSubmitJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkJobResponse>>;
|
|
194
|
+
/**
|
|
195
|
+
* Submits a job referencing a previously uploaded NDJSON object. One active job per merchant; additional submissions queue. The bulk surface is write-only (insert / upsert); it has no bulk read or export operation.
|
|
196
|
+
* Submit a bulk job
|
|
197
|
+
*/
|
|
198
|
+
bulkSubmitJob(requestParameters: BulkSubmitJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkJobResponse>;
|
|
199
|
+
}
|