@unified-api/typescript-sdk 2.80.8 → 2.80.10
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/README.md +12 -0
- package/examples/package-lock.json +1 -1
- package/funcs/commerceCreateCommerceSaleschannel.d.ts +15 -0
- package/funcs/commerceCreateCommerceSaleschannel.d.ts.map +1 -0
- package/funcs/commerceCreateCommerceSaleschannel.js +124 -0
- package/funcs/commerceCreateCommerceSaleschannel.js.map +1 -0
- package/funcs/commerceGetCommerceSaleschannel.d.ts +15 -0
- package/funcs/commerceGetCommerceSaleschannel.d.ts.map +1 -0
- package/funcs/commerceGetCommerceSaleschannel.js +125 -0
- package/funcs/commerceGetCommerceSaleschannel.js.map +1 -0
- package/funcs/commerceListCommerceCollections.js +1 -0
- package/funcs/commerceListCommerceCollections.js.map +1 -1
- package/funcs/commerceListCommerceSaleschannels.d.ts +15 -0
- package/funcs/commerceListCommerceSaleschannels.d.ts.map +1 -0
- package/funcs/commerceListCommerceSaleschannels.js +128 -0
- package/funcs/commerceListCommerceSaleschannels.js.map +1 -0
- package/funcs/commercePatchCommerceSaleschannel.d.ts +15 -0
- package/funcs/commercePatchCommerceSaleschannel.d.ts.map +1 -0
- package/funcs/commercePatchCommerceSaleschannel.js +128 -0
- package/funcs/commercePatchCommerceSaleschannel.js.map +1 -0
- package/funcs/commerceRemoveCommerceSaleschannel.d.ts +14 -0
- package/funcs/commerceRemoveCommerceSaleschannel.d.ts.map +1 -0
- package/funcs/commerceRemoveCommerceSaleschannel.js +122 -0
- package/funcs/commerceRemoveCommerceSaleschannel.js.map +1 -0
- package/funcs/commerceUpdateCommerceSaleschannel.d.ts +15 -0
- package/funcs/commerceUpdateCommerceSaleschannel.d.ts.map +1 -0
- package/funcs/commerceUpdateCommerceSaleschannel.js +128 -0
- package/funcs/commerceUpdateCommerceSaleschannel.js.map +1 -0
- package/funcs/messagingListMessagingChannels.js +1 -0
- package/funcs/messagingListMessagingChannels.js.map +1 -1
- package/funcs/messagingListMessagingMessages.js +1 -0
- package/funcs/messagingListMessagingMessages.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/commerce.d.ts +24 -0
- package/sdk/commerce.d.ts.map +1 -1
- package/sdk/commerce.js +42 -0
- package/sdk/commerce.js.map +1 -1
- package/sdk/models/operations/createcommercesaleschannel.d.ts +28 -0
- package/sdk/models/operations/createcommercesaleschannel.d.ts.map +1 -0
- package/sdk/models/operations/createcommercesaleschannel.js +59 -0
- package/sdk/models/operations/createcommercesaleschannel.js.map +1 -0
- package/sdk/models/operations/getcommercesaleschannel.d.ts +30 -0
- package/sdk/models/operations/getcommercesaleschannel.d.ts.map +1 -0
- package/sdk/models/operations/getcommercesaleschannel.js +57 -0
- package/sdk/models/operations/getcommercesaleschannel.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listcommercecollections.d.ts +5 -0
- package/sdk/models/operations/listcommercecollections.d.ts.map +1 -1
- package/sdk/models/operations/listcommercecollections.js +2 -0
- package/sdk/models/operations/listcommercecollections.js.map +1 -1
- package/sdk/models/operations/listcommercesaleschannels.d.ts +43 -0
- package/sdk/models/operations/listcommercesaleschannels.d.ts.map +1 -0
- package/sdk/models/operations/listcommercesaleschannels.js +63 -0
- package/sdk/models/operations/listcommercesaleschannels.js.map +1 -0
- package/sdk/models/operations/listmessagingchannels.d.ts +2 -0
- package/sdk/models/operations/listmessagingchannels.d.ts.map +1 -1
- package/sdk/models/operations/listmessagingchannels.js +1 -0
- package/sdk/models/operations/listmessagingchannels.js.map +1 -1
- package/sdk/models/operations/listmessagingmessages.d.ts +2 -0
- package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
- package/sdk/models/operations/listmessagingmessages.js +1 -0
- package/sdk/models/operations/listmessagingmessages.js.map +1 -1
- package/sdk/models/operations/patchcommercesaleschannel.d.ts +33 -0
- package/sdk/models/operations/patchcommercesaleschannel.d.ts.map +1 -0
- package/sdk/models/operations/patchcommercesaleschannel.js +60 -0
- package/sdk/models/operations/patchcommercesaleschannel.js.map +1 -0
- package/sdk/models/operations/removecommercesaleschannel.d.ts +30 -0
- package/sdk/models/operations/removecommercesaleschannel.d.ts.map +1 -0
- package/sdk/models/operations/removecommercesaleschannel.js +68 -0
- package/sdk/models/operations/removecommercesaleschannel.js.map +1 -0
- package/sdk/models/operations/updatecommercesaleschannel.d.ts +33 -0
- package/sdk/models/operations/updatecommercesaleschannel.d.ts.map +1 -0
- package/sdk/models/operations/updatecommercesaleschannel.js +60 -0
- package/sdk/models/operations/updatecommercesaleschannel.js.map +1 -0
- package/sdk/models/shared/commercecollection.d.ts +0 -3
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/commercemetadata.d.ts +2 -2
- package/sdk/models/shared/commercemetadata.d.ts.map +1 -1
- package/sdk/models/shared/commercemetadata.js +4 -2
- package/sdk/models/shared/commercemetadata.js.map +1 -1
- package/sdk/models/shared/commercereference.d.ts +19 -0
- package/sdk/models/shared/commercereference.d.ts.map +1 -0
- package/sdk/models/shared/commercereference.js +60 -0
- package/sdk/models/shared/commercereference.js.map +1 -0
- package/sdk/models/shared/commercesaleschannel.d.ts +39 -0
- package/sdk/models/shared/commercesaleschannel.d.ts.map +1 -0
- package/sdk/models/shared/commercesaleschannel.js +88 -0
- package/sdk/models/shared/commercesaleschannel.js.map +1 -0
- package/sdk/models/shared/index.d.ts +2 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +2 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +27 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +33 -5
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +1 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/saleschannel.d.ts +30 -0
- package/sdk/saleschannel.d.ts.map +1 -0
- package/sdk/saleschannel.js +54 -0
- package/sdk/saleschannel.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/commerceCreateCommerceSaleschannel.ts +173 -0
- package/src/funcs/commerceGetCommerceSaleschannel.ts +176 -0
- package/src/funcs/commerceListCommerceCollections.ts +1 -0
- package/src/funcs/commerceListCommerceSaleschannels.ts +177 -0
- package/src/funcs/commercePatchCommerceSaleschannel.ts +179 -0
- package/src/funcs/commerceRemoveCommerceSaleschannel.ts +181 -0
- package/src/funcs/commerceUpdateCommerceSaleschannel.ts +179 -0
- package/src/funcs/messagingListMessagingChannels.ts +1 -0
- package/src/funcs/messagingListMessagingMessages.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/commerce.ts +90 -0
- package/src/sdk/models/operations/createcommercesaleschannel.ts +58 -0
- package/src/sdk/models/operations/getcommercesaleschannel.ts +59 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listcommercecollections.ts +7 -0
- package/src/sdk/models/operations/listcommercesaleschannels.ts +78 -0
- package/src/sdk/models/operations/listmessagingchannels.ts +3 -0
- package/src/sdk/models/operations/listmessagingmessages.ts +3 -0
- package/src/sdk/models/operations/patchcommercesaleschannel.ts +64 -0
- package/src/sdk/models/operations/removecommercesaleschannel.ts +78 -0
- package/src/sdk/models/operations/updatecommercesaleschannel.ts +64 -0
- package/src/sdk/models/shared/commercecollection.ts +0 -3
- package/src/sdk/models/shared/commercemetadata.ts +6 -4
- package/src/sdk/models/shared/commercereference.ts +55 -0
- package/src/sdk/models/shared/commercesaleschannel.ts +103 -0
- package/src/sdk/models/shared/index.ts +2 -0
- package/src/sdk/models/shared/integrationsupport.ts +54 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/saleschannel.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
"raw": payload.raw,
|
|
109
109
|
"sort": payload.sort,
|
|
110
110
|
"start_gte": payload.start_gte,
|
|
111
|
+
"type": payload.type,
|
|
111
112
|
"updated_gte": payload.updated_gte,
|
|
112
113
|
"user_id": payload.user_id,
|
|
113
114
|
"user_mentioned_id": payload.user_mentioned_id,
|
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.0",
|
|
76
|
-
sdkVersion: "2.80.
|
|
76
|
+
sdkVersion: "2.80.10",
|
|
77
77
|
genVersion: "2.760.2",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 2.80.
|
|
79
|
+
"speakeasy-sdk/typescript 2.80.10 2.760.2 1.0 @unified-api/typescript-sdk",
|
|
80
80
|
} as const;
|
package/src/sdk/commerce.ts
CHANGED
|
@@ -7,31 +7,37 @@ import { commerceCreateCommerceInventory } from "../funcs/commerceCreateCommerce
|
|
|
7
7
|
import { commerceCreateCommerceItem } from "../funcs/commerceCreateCommerceItem.js";
|
|
8
8
|
import { commerceCreateCommerceLocation } from "../funcs/commerceCreateCommerceLocation.js";
|
|
9
9
|
import { commerceCreateCommerceReview } from "../funcs/commerceCreateCommerceReview.js";
|
|
10
|
+
import { commerceCreateCommerceSaleschannel } from "../funcs/commerceCreateCommerceSaleschannel.js";
|
|
10
11
|
import { commerceGetCommerceCollection } from "../funcs/commerceGetCommerceCollection.js";
|
|
11
12
|
import { commerceGetCommerceInventory } from "../funcs/commerceGetCommerceInventory.js";
|
|
12
13
|
import { commerceGetCommerceItem } from "../funcs/commerceGetCommerceItem.js";
|
|
13
14
|
import { commerceGetCommerceLocation } from "../funcs/commerceGetCommerceLocation.js";
|
|
14
15
|
import { commerceGetCommerceReview } from "../funcs/commerceGetCommerceReview.js";
|
|
16
|
+
import { commerceGetCommerceSaleschannel } from "../funcs/commerceGetCommerceSaleschannel.js";
|
|
15
17
|
import { commerceListCommerceCollections } from "../funcs/commerceListCommerceCollections.js";
|
|
16
18
|
import { commerceListCommerceInventories } from "../funcs/commerceListCommerceInventories.js";
|
|
17
19
|
import { commerceListCommerceItems } from "../funcs/commerceListCommerceItems.js";
|
|
18
20
|
import { commerceListCommerceLocations } from "../funcs/commerceListCommerceLocations.js";
|
|
19
21
|
import { commerceListCommerceReviews } from "../funcs/commerceListCommerceReviews.js";
|
|
22
|
+
import { commerceListCommerceSaleschannels } from "../funcs/commerceListCommerceSaleschannels.js";
|
|
20
23
|
import { commercePatchCommerceCollection } from "../funcs/commercePatchCommerceCollection.js";
|
|
21
24
|
import { commercePatchCommerceInventory } from "../funcs/commercePatchCommerceInventory.js";
|
|
22
25
|
import { commercePatchCommerceItem } from "../funcs/commercePatchCommerceItem.js";
|
|
23
26
|
import { commercePatchCommerceLocation } from "../funcs/commercePatchCommerceLocation.js";
|
|
24
27
|
import { commercePatchCommerceReview } from "../funcs/commercePatchCommerceReview.js";
|
|
28
|
+
import { commercePatchCommerceSaleschannel } from "../funcs/commercePatchCommerceSaleschannel.js";
|
|
25
29
|
import { commerceRemoveCommerceCollection } from "../funcs/commerceRemoveCommerceCollection.js";
|
|
26
30
|
import { commerceRemoveCommerceInventory } from "../funcs/commerceRemoveCommerceInventory.js";
|
|
27
31
|
import { commerceRemoveCommerceItem } from "../funcs/commerceRemoveCommerceItem.js";
|
|
28
32
|
import { commerceRemoveCommerceLocation } from "../funcs/commerceRemoveCommerceLocation.js";
|
|
29
33
|
import { commerceRemoveCommerceReview } from "../funcs/commerceRemoveCommerceReview.js";
|
|
34
|
+
import { commerceRemoveCommerceSaleschannel } from "../funcs/commerceRemoveCommerceSaleschannel.js";
|
|
30
35
|
import { commerceUpdateCommerceCollection } from "../funcs/commerceUpdateCommerceCollection.js";
|
|
31
36
|
import { commerceUpdateCommerceInventory } from "../funcs/commerceUpdateCommerceInventory.js";
|
|
32
37
|
import { commerceUpdateCommerceItem } from "../funcs/commerceUpdateCommerceItem.js";
|
|
33
38
|
import { commerceUpdateCommerceLocation } from "../funcs/commerceUpdateCommerceLocation.js";
|
|
34
39
|
import { commerceUpdateCommerceReview } from "../funcs/commerceUpdateCommerceReview.js";
|
|
40
|
+
import { commerceUpdateCommerceSaleschannel } from "../funcs/commerceUpdateCommerceSaleschannel.js";
|
|
35
41
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
36
42
|
import * as operations from "./models/operations/index.js";
|
|
37
43
|
import * as shared from "./models/shared/index.js";
|
|
@@ -108,6 +114,20 @@ export class Commerce extends ClientSDK {
|
|
|
108
114
|
));
|
|
109
115
|
}
|
|
110
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Create a saleschannel
|
|
119
|
+
*/
|
|
120
|
+
async createCommerceSaleschannel(
|
|
121
|
+
request: operations.CreateCommerceSaleschannelRequest,
|
|
122
|
+
options?: RequestOptions,
|
|
123
|
+
): Promise<shared.CommerceSaleschannel> {
|
|
124
|
+
return unwrapAsync(commerceCreateCommerceSaleschannel(
|
|
125
|
+
this,
|
|
126
|
+
request,
|
|
127
|
+
options,
|
|
128
|
+
));
|
|
129
|
+
}
|
|
130
|
+
|
|
111
131
|
/**
|
|
112
132
|
* Retrieve a collection
|
|
113
133
|
*/
|
|
@@ -178,6 +198,20 @@ export class Commerce extends ClientSDK {
|
|
|
178
198
|
));
|
|
179
199
|
}
|
|
180
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Retrieve a saleschannel
|
|
203
|
+
*/
|
|
204
|
+
async getCommerceSaleschannel(
|
|
205
|
+
request: operations.GetCommerceSaleschannelRequest,
|
|
206
|
+
options?: RequestOptions,
|
|
207
|
+
): Promise<shared.CommerceSaleschannel> {
|
|
208
|
+
return unwrapAsync(commerceGetCommerceSaleschannel(
|
|
209
|
+
this,
|
|
210
|
+
request,
|
|
211
|
+
options,
|
|
212
|
+
));
|
|
213
|
+
}
|
|
214
|
+
|
|
181
215
|
/**
|
|
182
216
|
* List all collections
|
|
183
217
|
*/
|
|
@@ -248,6 +282,20 @@ export class Commerce extends ClientSDK {
|
|
|
248
282
|
));
|
|
249
283
|
}
|
|
250
284
|
|
|
285
|
+
/**
|
|
286
|
+
* List all saleschannels
|
|
287
|
+
*/
|
|
288
|
+
async listCommerceSaleschannels(
|
|
289
|
+
request: operations.ListCommerceSaleschannelsRequest,
|
|
290
|
+
options?: RequestOptions,
|
|
291
|
+
): Promise<Array<shared.CommerceSaleschannel>> {
|
|
292
|
+
return unwrapAsync(commerceListCommerceSaleschannels(
|
|
293
|
+
this,
|
|
294
|
+
request,
|
|
295
|
+
options,
|
|
296
|
+
));
|
|
297
|
+
}
|
|
298
|
+
|
|
251
299
|
/**
|
|
252
300
|
* Update a collection
|
|
253
301
|
*/
|
|
@@ -318,6 +366,20 @@ export class Commerce extends ClientSDK {
|
|
|
318
366
|
));
|
|
319
367
|
}
|
|
320
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Update a saleschannel
|
|
371
|
+
*/
|
|
372
|
+
async patchCommerceSaleschannel(
|
|
373
|
+
request: operations.PatchCommerceSaleschannelRequest,
|
|
374
|
+
options?: RequestOptions,
|
|
375
|
+
): Promise<shared.CommerceSaleschannel> {
|
|
376
|
+
return unwrapAsync(commercePatchCommerceSaleschannel(
|
|
377
|
+
this,
|
|
378
|
+
request,
|
|
379
|
+
options,
|
|
380
|
+
));
|
|
381
|
+
}
|
|
382
|
+
|
|
321
383
|
/**
|
|
322
384
|
* Remove a collection
|
|
323
385
|
*/
|
|
@@ -388,6 +450,20 @@ export class Commerce extends ClientSDK {
|
|
|
388
450
|
));
|
|
389
451
|
}
|
|
390
452
|
|
|
453
|
+
/**
|
|
454
|
+
* Remove a saleschannel
|
|
455
|
+
*/
|
|
456
|
+
async removeCommerceSaleschannel(
|
|
457
|
+
request: operations.RemoveCommerceSaleschannelRequest,
|
|
458
|
+
options?: RequestOptions,
|
|
459
|
+
): Promise<operations.RemoveCommerceSaleschannelResponse | undefined> {
|
|
460
|
+
return unwrapAsync(commerceRemoveCommerceSaleschannel(
|
|
461
|
+
this,
|
|
462
|
+
request,
|
|
463
|
+
options,
|
|
464
|
+
));
|
|
465
|
+
}
|
|
466
|
+
|
|
391
467
|
/**
|
|
392
468
|
* Update a collection
|
|
393
469
|
*/
|
|
@@ -457,4 +533,18 @@ export class Commerce extends ClientSDK {
|
|
|
457
533
|
options,
|
|
458
534
|
));
|
|
459
535
|
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Update a saleschannel
|
|
539
|
+
*/
|
|
540
|
+
async updateCommerceSaleschannel(
|
|
541
|
+
request: operations.UpdateCommerceSaleschannelRequest,
|
|
542
|
+
options?: RequestOptions,
|
|
543
|
+
): Promise<shared.CommerceSaleschannel> {
|
|
544
|
+
return unwrapAsync(commerceUpdateCommerceSaleschannel(
|
|
545
|
+
this,
|
|
546
|
+
request,
|
|
547
|
+
options,
|
|
548
|
+
));
|
|
549
|
+
}
|
|
460
550
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import * as shared from "../shared/index.js";
|
|
8
|
+
|
|
9
|
+
export type CreateCommerceSaleschannelRequest = {
|
|
10
|
+
commerceSaleschannel: shared.CommerceSaleschannel;
|
|
11
|
+
/**
|
|
12
|
+
* ID of the connection
|
|
13
|
+
*/
|
|
14
|
+
connectionId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Comma-delimited fields to return
|
|
17
|
+
*/
|
|
18
|
+
fields?: Array<string> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
21
|
+
*/
|
|
22
|
+
raw?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type CreateCommerceSaleschannelRequest$Outbound = {
|
|
27
|
+
CommerceSaleschannel: shared.CommerceSaleschannel$Outbound;
|
|
28
|
+
connection_id: string;
|
|
29
|
+
fields?: Array<string> | undefined;
|
|
30
|
+
raw?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const CreateCommerceSaleschannelRequest$outboundSchema: z.ZodType<
|
|
35
|
+
CreateCommerceSaleschannelRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
CreateCommerceSaleschannelRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
commerceSaleschannel: shared.CommerceSaleschannel$outboundSchema,
|
|
40
|
+
connectionId: z.string(),
|
|
41
|
+
fields: z.array(z.string()).optional(),
|
|
42
|
+
raw: z.string().optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
commerceSaleschannel: "CommerceSaleschannel",
|
|
46
|
+
connectionId: "connection_id",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function createCommerceSaleschannelRequestToJSON(
|
|
51
|
+
createCommerceSaleschannelRequest: CreateCommerceSaleschannelRequest,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
CreateCommerceSaleschannelRequest$outboundSchema.parse(
|
|
55
|
+
createCommerceSaleschannelRequest,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type GetCommerceSaleschannelRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the connection
|
|
11
|
+
*/
|
|
12
|
+
connectionId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Comma-delimited fields to return
|
|
15
|
+
*/
|
|
16
|
+
fields?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the Saleschannel
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
23
|
+
*/
|
|
24
|
+
raw?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type GetCommerceSaleschannelRequest$Outbound = {
|
|
29
|
+
connection_id: string;
|
|
30
|
+
fields?: Array<string> | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
raw?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const GetCommerceSaleschannelRequest$outboundSchema: z.ZodType<
|
|
37
|
+
GetCommerceSaleschannelRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
GetCommerceSaleschannelRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
connectionId: z.string(),
|
|
42
|
+
fields: z.array(z.string()).optional(),
|
|
43
|
+
id: z.string(),
|
|
44
|
+
raw: z.string().optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
connectionId: "connection_id",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function getCommerceSaleschannelRequestToJSON(
|
|
52
|
+
getCommerceSaleschannelRequest: GetCommerceSaleschannelRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
GetCommerceSaleschannelRequest$outboundSchema.parse(
|
|
56
|
+
getCommerceSaleschannelRequest,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./createcommerceinventory.js";
|
|
|
31
31
|
export * from "./createcommerceitem.js";
|
|
32
32
|
export * from "./createcommercelocation.js";
|
|
33
33
|
export * from "./createcommercereview.js";
|
|
34
|
+
export * from "./createcommercesaleschannel.js";
|
|
34
35
|
export * from "./createcrmcompany.js";
|
|
35
36
|
export * from "./createcrmcontact.js";
|
|
36
37
|
export * from "./createcrmdeal.js";
|
|
@@ -119,6 +120,7 @@ export * from "./getcommerceinventory.js";
|
|
|
119
120
|
export * from "./getcommerceitem.js";
|
|
120
121
|
export * from "./getcommercelocation.js";
|
|
121
122
|
export * from "./getcommercereview.js";
|
|
123
|
+
export * from "./getcommercesaleschannel.js";
|
|
122
124
|
export * from "./getcrmcompany.js";
|
|
123
125
|
export * from "./getcrmcontact.js";
|
|
124
126
|
export * from "./getcrmdeal.js";
|
|
@@ -219,6 +221,7 @@ export * from "./listcommerceinventories.js";
|
|
|
219
221
|
export * from "./listcommerceitems.js";
|
|
220
222
|
export * from "./listcommercelocations.js";
|
|
221
223
|
export * from "./listcommercereviews.js";
|
|
224
|
+
export * from "./listcommercesaleschannels.js";
|
|
222
225
|
export * from "./listcrmcompanies.js";
|
|
223
226
|
export * from "./listcrmcontacts.js";
|
|
224
227
|
export * from "./listcrmdeals.js";
|
|
@@ -313,6 +316,7 @@ export * from "./patchcommerceinventory.js";
|
|
|
313
316
|
export * from "./patchcommerceitem.js";
|
|
314
317
|
export * from "./patchcommercelocation.js";
|
|
315
318
|
export * from "./patchcommercereview.js";
|
|
319
|
+
export * from "./patchcommercesaleschannel.js";
|
|
316
320
|
export * from "./patchcrmcompany.js";
|
|
317
321
|
export * from "./patchcrmcontact.js";
|
|
318
322
|
export * from "./patchcrmdeal.js";
|
|
@@ -394,6 +398,7 @@ export * from "./removecommerceinventory.js";
|
|
|
394
398
|
export * from "./removecommerceitem.js";
|
|
395
399
|
export * from "./removecommercelocation.js";
|
|
396
400
|
export * from "./removecommercereview.js";
|
|
401
|
+
export * from "./removecommercesaleschannel.js";
|
|
397
402
|
export * from "./removecrmcompany.js";
|
|
398
403
|
export * from "./removecrmcontact.js";
|
|
399
404
|
export * from "./removecrmdeal.js";
|
|
@@ -473,6 +478,7 @@ export * from "./updatecommerceinventory.js";
|
|
|
473
478
|
export * from "./updatecommerceitem.js";
|
|
474
479
|
export * from "./updatecommercelocation.js";
|
|
475
480
|
export * from "./updatecommercereview.js";
|
|
481
|
+
export * from "./updatecommercesaleschannel.js";
|
|
476
482
|
export * from "./updatecrmcompany.js";
|
|
477
483
|
export * from "./updatecrmcontact.js";
|
|
478
484
|
export * from "./updatecrmdeal.js";
|
|
@@ -29,6 +29,10 @@ export type ListCommerceCollectionsRequest = {
|
|
|
29
29
|
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
30
30
|
*/
|
|
31
31
|
raw?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The saleschannel ID to filter by
|
|
34
|
+
*/
|
|
35
|
+
saleschannelId?: string | undefined;
|
|
32
36
|
sort?: string | undefined;
|
|
33
37
|
type?: string | undefined;
|
|
34
38
|
/**
|
|
@@ -47,6 +51,7 @@ export type ListCommerceCollectionsRequest$Outbound = {
|
|
|
47
51
|
parent_id?: string | undefined;
|
|
48
52
|
query?: string | undefined;
|
|
49
53
|
raw?: string | undefined;
|
|
54
|
+
saleschannel_id?: string | undefined;
|
|
50
55
|
sort?: string | undefined;
|
|
51
56
|
type?: string | undefined;
|
|
52
57
|
updated_gte?: string | undefined;
|
|
@@ -66,6 +71,7 @@ export const ListCommerceCollectionsRequest$outboundSchema: z.ZodType<
|
|
|
66
71
|
parentId: z.string().optional(),
|
|
67
72
|
query: z.string().optional(),
|
|
68
73
|
raw: z.string().optional(),
|
|
74
|
+
saleschannelId: z.string().optional(),
|
|
69
75
|
sort: z.string().optional(),
|
|
70
76
|
type: z.string().optional(),
|
|
71
77
|
updatedGte: z.string().optional(),
|
|
@@ -73,6 +79,7 @@ export const ListCommerceCollectionsRequest$outboundSchema: z.ZodType<
|
|
|
73
79
|
return remap$(v, {
|
|
74
80
|
connectionId: "connection_id",
|
|
75
81
|
parentId: "parent_id",
|
|
82
|
+
saleschannelId: "saleschannel_id",
|
|
76
83
|
updatedGte: "updated_gte",
|
|
77
84
|
});
|
|
78
85
|
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ListCommerceSaleschannelsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the connection
|
|
11
|
+
*/
|
|
12
|
+
connectionId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Comma-delimited fields to return
|
|
15
|
+
*/
|
|
16
|
+
fields?: Array<string> | undefined;
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
offset?: number | undefined;
|
|
19
|
+
order?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Query string to search. eg. email address or name
|
|
22
|
+
*/
|
|
23
|
+
query?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
26
|
+
*/
|
|
27
|
+
raw?: string | undefined;
|
|
28
|
+
sort?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Return only results whose updated date is equal or greater to this value
|
|
31
|
+
*/
|
|
32
|
+
updatedGte?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ListCommerceSaleschannelsRequest$Outbound = {
|
|
37
|
+
connection_id: string;
|
|
38
|
+
fields?: Array<string> | undefined;
|
|
39
|
+
limit?: number | undefined;
|
|
40
|
+
offset?: number | undefined;
|
|
41
|
+
order?: string | undefined;
|
|
42
|
+
query?: string | undefined;
|
|
43
|
+
raw?: string | undefined;
|
|
44
|
+
sort?: string | undefined;
|
|
45
|
+
updated_gte?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const ListCommerceSaleschannelsRequest$outboundSchema: z.ZodType<
|
|
50
|
+
ListCommerceSaleschannelsRequest$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
ListCommerceSaleschannelsRequest
|
|
53
|
+
> = z.object({
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
limit: z.number().optional(),
|
|
57
|
+
offset: z.number().optional(),
|
|
58
|
+
order: z.string().optional(),
|
|
59
|
+
query: z.string().optional(),
|
|
60
|
+
raw: z.string().optional(),
|
|
61
|
+
sort: z.string().optional(),
|
|
62
|
+
updatedGte: z.string().optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
connectionId: "connection_id",
|
|
66
|
+
updatedGte: "updated_gte",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function listCommerceSaleschannelsRequestToJSON(
|
|
71
|
+
listCommerceSaleschannelsRequest: ListCommerceSaleschannelsRequest,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
ListCommerceSaleschannelsRequest$outboundSchema.parse(
|
|
75
|
+
listCommerceSaleschannelsRequest,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -30,6 +30,7 @@ export type ListMessagingChannelsRequest = {
|
|
|
30
30
|
*/
|
|
31
31
|
raw?: string | undefined;
|
|
32
32
|
sort?: string | undefined;
|
|
33
|
+
type?: string | undefined;
|
|
33
34
|
/**
|
|
34
35
|
* Return only results whose updated date is equal or greater to this value
|
|
35
36
|
*/
|
|
@@ -47,6 +48,7 @@ export type ListMessagingChannelsRequest$Outbound = {
|
|
|
47
48
|
query?: string | undefined;
|
|
48
49
|
raw?: string | undefined;
|
|
49
50
|
sort?: string | undefined;
|
|
51
|
+
type?: string | undefined;
|
|
50
52
|
updated_gte?: string | undefined;
|
|
51
53
|
};
|
|
52
54
|
|
|
@@ -65,6 +67,7 @@ export const ListMessagingChannelsRequest$outboundSchema: z.ZodType<
|
|
|
65
67
|
query: z.string().optional(),
|
|
66
68
|
raw: z.string().optional(),
|
|
67
69
|
sort: z.string().optional(),
|
|
70
|
+
type: z.string().optional(),
|
|
68
71
|
updatedGte: z.string().optional(),
|
|
69
72
|
}).transform((v) => {
|
|
70
73
|
return remap$(v, {
|
|
@@ -50,6 +50,7 @@ export type ListMessagingMessagesRequest = {
|
|
|
50
50
|
* The start date to filter by
|
|
51
51
|
*/
|
|
52
52
|
startGte?: string | undefined;
|
|
53
|
+
type?: string | undefined;
|
|
53
54
|
/**
|
|
54
55
|
* Return only results whose updated date is equal or greater to this value
|
|
55
56
|
*/
|
|
@@ -80,6 +81,7 @@ export type ListMessagingMessagesRequest$Outbound = {
|
|
|
80
81
|
raw?: string | undefined;
|
|
81
82
|
sort?: string | undefined;
|
|
82
83
|
start_gte?: string | undefined;
|
|
84
|
+
type?: string | undefined;
|
|
83
85
|
updated_gte?: string | undefined;
|
|
84
86
|
user_id?: string | undefined;
|
|
85
87
|
user_mentioned_id?: string | undefined;
|
|
@@ -105,6 +107,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
|
|
|
105
107
|
raw: z.string().optional(),
|
|
106
108
|
sort: z.string().optional(),
|
|
107
109
|
startGte: z.string().optional(),
|
|
110
|
+
type: z.string().optional(),
|
|
108
111
|
updatedGte: z.string().optional(),
|
|
109
112
|
userId: z.string().optional(),
|
|
110
113
|
userMentionedId: z.string().optional(),
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import * as shared from "../shared/index.js";
|
|
8
|
+
|
|
9
|
+
export type PatchCommerceSaleschannelRequest = {
|
|
10
|
+
commerceSaleschannel: shared.CommerceSaleschannel;
|
|
11
|
+
/**
|
|
12
|
+
* ID of the connection
|
|
13
|
+
*/
|
|
14
|
+
connectionId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Comma-delimited fields to return
|
|
17
|
+
*/
|
|
18
|
+
fields?: Array<string> | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* ID of the Saleschannel
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
25
|
+
*/
|
|
26
|
+
raw?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PatchCommerceSaleschannelRequest$Outbound = {
|
|
31
|
+
CommerceSaleschannel: shared.CommerceSaleschannel$Outbound;
|
|
32
|
+
connection_id: string;
|
|
33
|
+
fields?: Array<string> | undefined;
|
|
34
|
+
id: string;
|
|
35
|
+
raw?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const PatchCommerceSaleschannelRequest$outboundSchema: z.ZodType<
|
|
40
|
+
PatchCommerceSaleschannelRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
PatchCommerceSaleschannelRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
commerceSaleschannel: shared.CommerceSaleschannel$outboundSchema,
|
|
45
|
+
connectionId: z.string(),
|
|
46
|
+
fields: z.array(z.string()).optional(),
|
|
47
|
+
id: z.string(),
|
|
48
|
+
raw: z.string().optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
commerceSaleschannel: "CommerceSaleschannel",
|
|
52
|
+
connectionId: "connection_id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function patchCommerceSaleschannelRequestToJSON(
|
|
57
|
+
patchCommerceSaleschannelRequest: PatchCommerceSaleschannelRequest,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PatchCommerceSaleschannelRequest$outboundSchema.parse(
|
|
61
|
+
patchCommerceSaleschannelRequest,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type RemoveCommerceSaleschannelRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Saleschannel
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveCommerceSaleschannelResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type RemoveCommerceSaleschannelRequest$Outbound = {
|
|
28
|
+
connection_id: string;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const RemoveCommerceSaleschannelRequest$outboundSchema: z.ZodType<
|
|
34
|
+
RemoveCommerceSaleschannelRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
RemoveCommerceSaleschannelRequest
|
|
37
|
+
> = z.object({
|
|
38
|
+
connectionId: z.string(),
|
|
39
|
+
id: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
connectionId: "connection_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function removeCommerceSaleschannelRequestToJSON(
|
|
47
|
+
removeCommerceSaleschannelRequest: RemoveCommerceSaleschannelRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
RemoveCommerceSaleschannelRequest$outboundSchema.parse(
|
|
51
|
+
removeCommerceSaleschannelRequest,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const RemoveCommerceSaleschannelResponse$inboundSchema: z.ZodType<
|
|
58
|
+
RemoveCommerceSaleschannelResponse,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({
|
|
62
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
"Headers": "headers",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function removeCommerceSaleschannelResponseFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<RemoveCommerceSaleschannelResponse, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) =>
|
|
75
|
+
RemoveCommerceSaleschannelResponse$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'RemoveCommerceSaleschannelResponse' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|