@unified-api/typescript-sdk 2.9.7 → 2.9.9
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 +6 -12
- package/docs/sdks/commerce/README.md +0 -494
- package/docs/sdks/metadata/README.md +42 -42
- package/funcs/{commerceCreateCommerceMetadata.d.ts → metadataCreateMetadataMetadata.d.ts} +2 -2
- package/funcs/{metadataUpdateCommerceMetadata.d.ts.map → metadataCreateMetadataMetadata.d.ts.map} +1 -1
- package/funcs/{commerceCreateCommerceMetadata.js → metadataCreateMetadataMetadata.js} +8 -8
- package/funcs/{metadataCreateCommerceMetadata.js.map → metadataCreateMetadataMetadata.js.map} +1 -1
- package/funcs/{metadataGetCommerceMetadata.d.ts → metadataGetMetadataMetadata.d.ts} +2 -2
- package/funcs/{commerceGetCommerceMetadata.d.ts.map → metadataGetMetadataMetadata.d.ts.map} +1 -1
- package/funcs/{commerceGetCommerceMetadata.js → metadataGetMetadataMetadata.js} +7 -7
- package/funcs/{commerceGetCommerceMetadata.js.map → metadataGetMetadataMetadata.js.map} +1 -1
- package/funcs/{metadataListCommerceMetadatas.d.ts → metadataListMetadataMetadatas.d.ts} +2 -2
- package/funcs/{commerceListCommerceMetadatas.d.ts.map → metadataListMetadataMetadatas.d.ts.map} +1 -1
- package/funcs/{commerceListCommerceMetadatas.js → metadataListMetadataMetadatas.js} +8 -7
- package/funcs/metadataListMetadataMetadatas.js.map +1 -0
- package/funcs/{metadataPatchCommerceMetadata.d.ts → metadataPatchMetadataMetadata.d.ts} +2 -2
- package/funcs/{commercePatchCommerceMetadata.d.ts.map → metadataPatchMetadataMetadata.d.ts.map} +1 -1
- package/funcs/{metadataPatchCommerceMetadata.js → metadataPatchMetadataMetadata.js} +8 -8
- package/funcs/{commercePatchCommerceMetadata.js.map → metadataPatchMetadataMetadata.js.map} +1 -1
- package/funcs/{commerceRemoveCommerceMetadata.d.ts → metadataRemoveMetadataMetadata.d.ts} +2 -2
- package/funcs/{commerceRemoveCommerceMetadata.d.ts.map → metadataRemoveMetadataMetadata.d.ts.map} +1 -1
- package/funcs/{commerceRemoveCommerceMetadata.js → metadataRemoveMetadataMetadata.js} +7 -7
- package/funcs/{commerceRemoveCommerceMetadata.js.map → metadataRemoveMetadataMetadata.js.map} +1 -1
- package/funcs/{commerceUpdateCommerceMetadata.d.ts → metadataUpdateMetadataMetadata.d.ts} +2 -2
- package/funcs/{commerceCreateCommerceMetadata.d.ts.map → metadataUpdateMetadataMetadata.d.ts.map} +1 -1
- package/funcs/{commerceUpdateCommerceMetadata.js → metadataUpdateMetadataMetadata.js} +8 -8
- package/funcs/{metadataUpdateCommerceMetadata.js.map → metadataUpdateMetadataMetadata.js.map} +1 -1
- package/funcs/passthroughCreatePassthroughJson.d.ts +1 -1
- package/funcs/passthroughCreatePassthroughJson.d.ts.map +1 -1
- package/funcs/passthroughCreatePassthroughJson.js +1 -1
- package/funcs/passthroughCreatePassthroughJson.js.map +1 -1
- package/funcs/passthroughCreatePassthroughRaw.d.ts +1 -1
- package/funcs/passthroughCreatePassthroughRaw.d.ts.map +1 -1
- package/funcs/passthroughCreatePassthroughRaw.js +1 -1
- package/funcs/passthroughCreatePassthroughRaw.js.map +1 -1
- package/funcs/passthroughListPassthroughs.d.ts +1 -1
- package/funcs/passthroughListPassthroughs.d.ts.map +1 -1
- package/funcs/passthroughListPassthroughs.js +1 -1
- package/funcs/passthroughListPassthroughs.js.map +1 -1
- package/funcs/passthroughPatchPassthroughJson.d.ts +1 -1
- package/funcs/passthroughPatchPassthroughJson.d.ts.map +1 -1
- package/funcs/passthroughPatchPassthroughJson.js +1 -1
- package/funcs/passthroughPatchPassthroughJson.js.map +1 -1
- package/funcs/passthroughPatchPassthroughRaw.d.ts +1 -1
- package/funcs/passthroughPatchPassthroughRaw.d.ts.map +1 -1
- package/funcs/passthroughPatchPassthroughRaw.js +1 -1
- package/funcs/passthroughPatchPassthroughRaw.js.map +1 -1
- package/funcs/passthroughRemovePassthrough.d.ts +1 -1
- package/funcs/passthroughRemovePassthrough.d.ts.map +1 -1
- package/funcs/passthroughRemovePassthrough.js +1 -1
- package/funcs/passthroughRemovePassthrough.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughJson.d.ts +1 -1
- package/funcs/passthroughUpdatePassthroughJson.d.ts.map +1 -1
- package/funcs/passthroughUpdatePassthroughJson.js +1 -1
- package/funcs/passthroughUpdatePassthroughJson.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.d.ts +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.d.ts.map +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.js +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/package.json +1 -3
- package/sdk/commerce.d.ts +0 -24
- package/sdk/commerce.d.ts.map +1 -1
- package/sdk/commerce.js +0 -42
- package/sdk/commerce.js.map +1 -1
- package/sdk/metadata.d.ts +6 -6
- package/sdk/metadata.js +18 -18
- package/sdk/models/operations/createmetadatametadata.d.ts +40 -0
- package/sdk/models/operations/{createcommercemetadata.d.ts.map → createmetadatametadata.d.ts.map} +1 -1
- package/sdk/models/operations/{createcommercemetadata.js → createmetadatametadata.js} +21 -21
- package/sdk/models/operations/{createcommercemetadata.js.map → createmetadatametadata.js.map} +1 -1
- package/sdk/models/operations/getmetadatametadata.d.ts +42 -0
- package/sdk/models/operations/{getcommercemetadata.d.ts.map → getmetadatametadata.d.ts.map} +1 -1
- package/sdk/models/operations/{getcommercemetadata.js → getmetadatametadata.js} +17 -17
- package/sdk/models/operations/{getcommercemetadata.js.map → getmetadatametadata.js.map} +1 -1
- package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -6
- package/sdk/models/operations/getunifiedintegrationauth.js +2 -2
- package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
- package/sdk/models/operations/index.d.ts +6 -6
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -6
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/{listcommercemetadatas.d.ts → listmetadatametadatas.d.ts} +16 -14
- package/sdk/models/operations/listmetadatametadatas.d.ts.map +1 -0
- package/sdk/models/operations/{listcommercemetadatas.js → listmetadatametadatas.js} +19 -17
- package/sdk/models/operations/listmetadatametadatas.js.map +1 -0
- package/sdk/models/operations/listunifiedconnections.d.ts +3 -0
- package/sdk/models/operations/listunifiedconnections.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedconnections.js +1 -0
- package/sdk/models/operations/listunifiedconnections.js.map +1 -1
- package/sdk/models/operations/listunifiedintegrations.d.ts +3 -0
- package/sdk/models/operations/listunifiedintegrations.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedintegrations.js +1 -0
- package/sdk/models/operations/listunifiedintegrations.js.map +1 -1
- package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +3 -0
- package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
- package/sdk/models/operations/listunifiedintegrationworkspaces.js.map +1 -1
- package/sdk/models/operations/patchmetadatametadata.d.ts +45 -0
- package/sdk/models/operations/{patchcommercemetadata.d.ts.map → patchmetadatametadata.d.ts.map} +1 -1
- package/sdk/models/operations/{patchcommercemetadata.js → patchmetadatametadata.js} +21 -21
- package/sdk/models/operations/{patchcommercemetadata.js.map → patchmetadatametadata.js.map} +1 -1
- package/sdk/models/operations/removemetadatametadata.d.ts +66 -0
- package/sdk/models/operations/{removecommercemetadata.d.ts.map → removemetadatametadata.d.ts.map} +1 -1
- package/sdk/models/operations/removemetadatametadata.js +105 -0
- package/sdk/models/operations/{removecommercemetadata.js.map → removemetadatametadata.js.map} +1 -1
- package/sdk/models/operations/updatemetadatametadata.d.ts +45 -0
- package/sdk/models/operations/{updatecommercemetadata.d.ts.map → updatemetadatametadata.d.ts.map} +1 -1
- package/sdk/models/operations/{updatecommercemetadata.js → updatemetadatametadata.js} +21 -21
- package/sdk/models/operations/{updatecommercemetadata.js.map → updatemetadatametadata.js.map} +1 -1
- package/sdk/models/shared/index.d.ts +1 -1
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -1
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/metadatametadata.d.ts +51 -0
- package/sdk/models/shared/metadatametadata.d.ts.map +1 -0
- package/sdk/models/shared/metadatametadata.js +88 -0
- package/sdk/models/shared/metadatametadata.js.map +1 -0
- package/sdk/models/shared/propertyconnectioncategories.d.ts +3 -0
- package/sdk/models/shared/propertyconnectioncategories.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectioncategories.js +1 -0
- package/sdk/models/shared/propertyconnectioncategories.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -6
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -2
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/propertyintegrationcategories.d.ts +3 -0
- package/sdk/models/shared/propertyintegrationcategories.d.ts.map +1 -1
- package/sdk/models/shared/propertyintegrationcategories.js +1 -0
- package/sdk/models/shared/propertyintegrationcategories.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -3
- package/sdk/models/shared/webhook.js +1 -1
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/{metadataCreateCommerceMetadata.ts → metadataCreateMetadataMetadata.ts} +9 -9
- package/src/funcs/{commerceGetCommerceMetadata.ts → metadataGetMetadataMetadata.ts} +8 -8
- package/src/funcs/{commerceListCommerceMetadatas.ts → metadataListMetadataMetadatas.ts} +9 -8
- package/src/funcs/{metadataPatchCommerceMetadata.ts → metadataPatchMetadataMetadata.ts} +9 -9
- package/src/funcs/{metadataRemoveCommerceMetadata.ts → metadataRemoveMetadataMetadata.ts} +9 -9
- package/src/funcs/{commerceUpdateCommerceMetadata.ts → metadataUpdateMetadataMetadata.ts} +9 -9
- package/src/funcs/passthroughCreatePassthroughJson.ts +1 -1
- package/src/funcs/passthroughCreatePassthroughRaw.ts +1 -1
- package/src/funcs/passthroughListPassthroughs.ts +1 -1
- package/src/funcs/passthroughPatchPassthroughJson.ts +1 -1
- package/src/funcs/passthroughPatchPassthroughRaw.ts +1 -1
- package/src/funcs/passthroughRemovePassthrough.ts +1 -1
- package/src/funcs/passthroughUpdatePassthroughJson.ts +1 -1
- package/src/funcs/passthroughUpdatePassthroughRaw.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/commerce.ts +0 -90
- package/src/sdk/metadata.ts +30 -30
- package/src/sdk/models/operations/createmetadatametadata.ts +94 -0
- package/src/sdk/models/operations/{getcommercemetadata.ts → getmetadatametadata.ts} +21 -21
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -2
- package/src/sdk/models/operations/index.ts +6 -6
- package/src/sdk/models/operations/{listcommercemetadatas.ts → listmetadatametadatas.ts} +26 -22
- package/src/sdk/models/operations/listunifiedconnections.ts +1 -0
- package/src/sdk/models/operations/listunifiedintegrations.ts +1 -0
- package/src/sdk/models/operations/listunifiedintegrationworkspaces.ts +1 -0
- package/src/sdk/models/operations/patchmetadatametadata.ts +101 -0
- package/src/sdk/models/operations/removemetadatametadata.ts +155 -0
- package/src/sdk/models/operations/updatemetadatametadata.ts +101 -0
- package/src/sdk/models/shared/index.ts +1 -1
- package/src/sdk/models/shared/metadatametadata.ts +109 -0
- package/src/sdk/models/shared/propertyconnectioncategories.ts +1 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -2
- package/src/sdk/models/shared/propertyintegrationcategories.ts +1 -0
- package/src/sdk/models/shared/webhook.ts +1 -1
- package/src/sdk/sdk.ts +5 -5
- package/funcs/commerceCreateCommerceMetadata.js.map +0 -1
- package/funcs/commerceGetCommerceMetadata.d.ts +0 -13
- package/funcs/commerceListCommerceMetadatas.d.ts +0 -13
- package/funcs/commerceListCommerceMetadatas.js.map +0 -1
- package/funcs/commercePatchCommerceMetadata.d.ts +0 -13
- package/funcs/commercePatchCommerceMetadata.js +0 -106
- package/funcs/commerceUpdateCommerceMetadata.d.ts.map +0 -1
- package/funcs/commerceUpdateCommerceMetadata.js.map +0 -1
- package/funcs/metadataCreateCommerceMetadata.d.ts +0 -13
- package/funcs/metadataCreateCommerceMetadata.d.ts.map +0 -1
- package/funcs/metadataCreateCommerceMetadata.js +0 -102
- package/funcs/metadataGetCommerceMetadata.d.ts.map +0 -1
- package/funcs/metadataGetCommerceMetadata.js +0 -105
- package/funcs/metadataGetCommerceMetadata.js.map +0 -1
- package/funcs/metadataListCommerceMetadatas.d.ts.map +0 -1
- package/funcs/metadataListCommerceMetadatas.js +0 -108
- package/funcs/metadataListCommerceMetadatas.js.map +0 -1
- package/funcs/metadataPatchCommerceMetadata.d.ts.map +0 -1
- package/funcs/metadataPatchCommerceMetadata.js.map +0 -1
- package/funcs/metadataRemoveCommerceMetadata.d.ts +0 -12
- package/funcs/metadataRemoveCommerceMetadata.d.ts.map +0 -1
- package/funcs/metadataRemoveCommerceMetadata.js +0 -103
- package/funcs/metadataRemoveCommerceMetadata.js.map +0 -1
- package/funcs/metadataUpdateCommerceMetadata.d.ts +0 -13
- package/funcs/metadataUpdateCommerceMetadata.js +0 -106
- package/sdk/models/operations/createcommercemetadata.d.ts +0 -40
- package/sdk/models/operations/getcommercemetadata.d.ts +0 -42
- package/sdk/models/operations/listcommercemetadatas.d.ts.map +0 -1
- package/sdk/models/operations/listcommercemetadatas.js.map +0 -1
- package/sdk/models/operations/patchcommercemetadata.d.ts +0 -45
- package/sdk/models/operations/removecommercemetadata.d.ts +0 -66
- package/sdk/models/operations/removecommercemetadata.js +0 -105
- package/sdk/models/operations/updatecommercemetadata.d.ts +0 -45
- package/sdk/models/shared/commercemetadata.d.ts +0 -25
- package/sdk/models/shared/commercemetadata.d.ts.map +0 -1
- package/sdk/models/shared/commercemetadata.js +0 -55
- package/sdk/models/shared/commercemetadata.js.map +0 -1
- package/src/funcs/commerceCreateCommerceMetadata.ts +0 -133
- package/src/funcs/commercePatchCommerceMetadata.ts +0 -139
- package/src/funcs/commerceRemoveCommerceMetadata.ts +0 -144
- package/src/funcs/metadataGetCommerceMetadata.ts +0 -138
- package/src/funcs/metadataListCommerceMetadatas.ts +0 -139
- package/src/funcs/metadataUpdateCommerceMetadata.ts +0 -139
- package/src/sdk/models/operations/createcommercemetadata.ts +0 -94
- package/src/sdk/models/operations/patchcommercemetadata.ts +0 -101
- package/src/sdk/models/operations/removecommercemetadata.ts +0 -155
- package/src/sdk/models/operations/updatecommercemetadata.ts +0 -101
- package/src/sdk/models/shared/commercemetadata.ts +0 -58
package/src/sdk/commerce.ts
CHANGED
|
@@ -6,32 +6,26 @@ import { commerceCreateCommerceCollection } from "../funcs/commerceCreateCommerc
|
|
|
6
6
|
import { commerceCreateCommerceInventory } from "../funcs/commerceCreateCommerceInventory.js";
|
|
7
7
|
import { commerceCreateCommerceItem } from "../funcs/commerceCreateCommerceItem.js";
|
|
8
8
|
import { commerceCreateCommerceLocation } from "../funcs/commerceCreateCommerceLocation.js";
|
|
9
|
-
import { commerceCreateCommerceMetadata } from "../funcs/commerceCreateCommerceMetadata.js";
|
|
10
9
|
import { commerceGetCommerceCollection } from "../funcs/commerceGetCommerceCollection.js";
|
|
11
10
|
import { commerceGetCommerceInventory } from "../funcs/commerceGetCommerceInventory.js";
|
|
12
11
|
import { commerceGetCommerceItem } from "../funcs/commerceGetCommerceItem.js";
|
|
13
12
|
import { commerceGetCommerceLocation } from "../funcs/commerceGetCommerceLocation.js";
|
|
14
|
-
import { commerceGetCommerceMetadata } from "../funcs/commerceGetCommerceMetadata.js";
|
|
15
13
|
import { commerceListCommerceCollections } from "../funcs/commerceListCommerceCollections.js";
|
|
16
14
|
import { commerceListCommerceInventories } from "../funcs/commerceListCommerceInventories.js";
|
|
17
15
|
import { commerceListCommerceItems } from "../funcs/commerceListCommerceItems.js";
|
|
18
16
|
import { commerceListCommerceLocations } from "../funcs/commerceListCommerceLocations.js";
|
|
19
|
-
import { commerceListCommerceMetadatas } from "../funcs/commerceListCommerceMetadatas.js";
|
|
20
17
|
import { commercePatchCommerceCollection } from "../funcs/commercePatchCommerceCollection.js";
|
|
21
18
|
import { commercePatchCommerceInventory } from "../funcs/commercePatchCommerceInventory.js";
|
|
22
19
|
import { commercePatchCommerceItem } from "../funcs/commercePatchCommerceItem.js";
|
|
23
20
|
import { commercePatchCommerceLocation } from "../funcs/commercePatchCommerceLocation.js";
|
|
24
|
-
import { commercePatchCommerceMetadata } from "../funcs/commercePatchCommerceMetadata.js";
|
|
25
21
|
import { commerceRemoveCommerceCollection } from "../funcs/commerceRemoveCommerceCollection.js";
|
|
26
22
|
import { commerceRemoveCommerceInventory } from "../funcs/commerceRemoveCommerceInventory.js";
|
|
27
23
|
import { commerceRemoveCommerceItem } from "../funcs/commerceRemoveCommerceItem.js";
|
|
28
24
|
import { commerceRemoveCommerceLocation } from "../funcs/commerceRemoveCommerceLocation.js";
|
|
29
|
-
import { commerceRemoveCommerceMetadata } from "../funcs/commerceRemoveCommerceMetadata.js";
|
|
30
25
|
import { commerceUpdateCommerceCollection } from "../funcs/commerceUpdateCommerceCollection.js";
|
|
31
26
|
import { commerceUpdateCommerceInventory } from "../funcs/commerceUpdateCommerceInventory.js";
|
|
32
27
|
import { commerceUpdateCommerceItem } from "../funcs/commerceUpdateCommerceItem.js";
|
|
33
28
|
import { commerceUpdateCommerceLocation } from "../funcs/commerceUpdateCommerceLocation.js";
|
|
34
|
-
import { commerceUpdateCommerceMetadata } from "../funcs/commerceUpdateCommerceMetadata.js";
|
|
35
29
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
36
30
|
import * as operations from "./models/operations/index.js";
|
|
37
31
|
import * as shared from "./models/shared/index.js";
|
|
@@ -94,20 +88,6 @@ export class Commerce extends ClientSDK {
|
|
|
94
88
|
));
|
|
95
89
|
}
|
|
96
90
|
|
|
97
|
-
/**
|
|
98
|
-
* Create a metadata
|
|
99
|
-
*/
|
|
100
|
-
async createCommerceMetadata(
|
|
101
|
-
request: operations.CreateCommerceMetadataRequest,
|
|
102
|
-
options?: RequestOptions,
|
|
103
|
-
): Promise<shared.CommerceMetadata> {
|
|
104
|
-
return unwrapAsync(commerceCreateCommerceMetadata(
|
|
105
|
-
this,
|
|
106
|
-
request,
|
|
107
|
-
options,
|
|
108
|
-
));
|
|
109
|
-
}
|
|
110
|
-
|
|
111
91
|
/**
|
|
112
92
|
* Retrieve a collection
|
|
113
93
|
*/
|
|
@@ -164,20 +144,6 @@ export class Commerce extends ClientSDK {
|
|
|
164
144
|
));
|
|
165
145
|
}
|
|
166
146
|
|
|
167
|
-
/**
|
|
168
|
-
* Retrieve a metadata
|
|
169
|
-
*/
|
|
170
|
-
async getCommerceMetadata(
|
|
171
|
-
request: operations.GetCommerceMetadataRequest,
|
|
172
|
-
options?: RequestOptions,
|
|
173
|
-
): Promise<shared.CommerceMetadata> {
|
|
174
|
-
return unwrapAsync(commerceGetCommerceMetadata(
|
|
175
|
-
this,
|
|
176
|
-
request,
|
|
177
|
-
options,
|
|
178
|
-
));
|
|
179
|
-
}
|
|
180
|
-
|
|
181
147
|
/**
|
|
182
148
|
* List all collections
|
|
183
149
|
*/
|
|
@@ -234,20 +200,6 @@ export class Commerce extends ClientSDK {
|
|
|
234
200
|
));
|
|
235
201
|
}
|
|
236
202
|
|
|
237
|
-
/**
|
|
238
|
-
* List all metadatas
|
|
239
|
-
*/
|
|
240
|
-
async listCommerceMetadatas(
|
|
241
|
-
request: operations.ListCommerceMetadatasRequest,
|
|
242
|
-
options?: RequestOptions,
|
|
243
|
-
): Promise<Array<shared.CommerceMetadata>> {
|
|
244
|
-
return unwrapAsync(commerceListCommerceMetadatas(
|
|
245
|
-
this,
|
|
246
|
-
request,
|
|
247
|
-
options,
|
|
248
|
-
));
|
|
249
|
-
}
|
|
250
|
-
|
|
251
203
|
/**
|
|
252
204
|
* Update a collection
|
|
253
205
|
*/
|
|
@@ -304,20 +256,6 @@ export class Commerce extends ClientSDK {
|
|
|
304
256
|
));
|
|
305
257
|
}
|
|
306
258
|
|
|
307
|
-
/**
|
|
308
|
-
* Update a metadata
|
|
309
|
-
*/
|
|
310
|
-
async patchCommerceMetadata(
|
|
311
|
-
request: operations.PatchCommerceMetadataRequest,
|
|
312
|
-
options?: RequestOptions,
|
|
313
|
-
): Promise<shared.CommerceMetadata> {
|
|
314
|
-
return unwrapAsync(commercePatchCommerceMetadata(
|
|
315
|
-
this,
|
|
316
|
-
request,
|
|
317
|
-
options,
|
|
318
|
-
));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
259
|
/**
|
|
322
260
|
* Remove a collection
|
|
323
261
|
*/
|
|
@@ -374,20 +312,6 @@ export class Commerce extends ClientSDK {
|
|
|
374
312
|
));
|
|
375
313
|
}
|
|
376
314
|
|
|
377
|
-
/**
|
|
378
|
-
* Remove a metadata
|
|
379
|
-
*/
|
|
380
|
-
async removeCommerceMetadata(
|
|
381
|
-
request: operations.RemoveCommerceMetadataRequest,
|
|
382
|
-
options?: RequestOptions,
|
|
383
|
-
): Promise<operations.RemoveCommerceMetadataResponse | undefined> {
|
|
384
|
-
return unwrapAsync(commerceRemoveCommerceMetadata(
|
|
385
|
-
this,
|
|
386
|
-
request,
|
|
387
|
-
options,
|
|
388
|
-
));
|
|
389
|
-
}
|
|
390
|
-
|
|
391
315
|
/**
|
|
392
316
|
* Update a collection
|
|
393
317
|
*/
|
|
@@ -443,18 +367,4 @@ export class Commerce extends ClientSDK {
|
|
|
443
367
|
options,
|
|
444
368
|
));
|
|
445
369
|
}
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Update a metadata
|
|
449
|
-
*/
|
|
450
|
-
async updateCommerceMetadata(
|
|
451
|
-
request: operations.UpdateCommerceMetadataRequest,
|
|
452
|
-
options?: RequestOptions,
|
|
453
|
-
): Promise<shared.CommerceMetadata> {
|
|
454
|
-
return unwrapAsync(commerceUpdateCommerceMetadata(
|
|
455
|
-
this,
|
|
456
|
-
request,
|
|
457
|
-
options,
|
|
458
|
-
));
|
|
459
|
-
}
|
|
460
370
|
}
|
package/src/sdk/metadata.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { metadataCreateMetadataMetadata } from "../funcs/metadataCreateMetadataMetadata.js";
|
|
6
|
+
import { metadataGetMetadataMetadata } from "../funcs/metadataGetMetadataMetadata.js";
|
|
7
|
+
import { metadataListMetadataMetadatas } from "../funcs/metadataListMetadataMetadatas.js";
|
|
8
|
+
import { metadataPatchMetadataMetadata } from "../funcs/metadataPatchMetadataMetadata.js";
|
|
9
|
+
import { metadataRemoveMetadataMetadata } from "../funcs/metadataRemoveMetadataMetadata.js";
|
|
10
|
+
import { metadataUpdateMetadataMetadata } from "../funcs/metadataUpdateMetadataMetadata.js";
|
|
11
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import * as operations from "./models/operations/index.js";
|
|
13
13
|
import * as shared from "./models/shared/index.js";
|
|
@@ -17,11 +17,11 @@ export class Metadata extends ClientSDK {
|
|
|
17
17
|
/**
|
|
18
18
|
* Create a metadata
|
|
19
19
|
*/
|
|
20
|
-
async
|
|
21
|
-
request: operations.
|
|
20
|
+
async createMetadataMetadata(
|
|
21
|
+
request: operations.CreateMetadataMetadataRequest,
|
|
22
22
|
options?: RequestOptions,
|
|
23
|
-
): Promise<shared.
|
|
24
|
-
return unwrapAsync(
|
|
23
|
+
): Promise<shared.MetadataMetadata> {
|
|
24
|
+
return unwrapAsync(metadataCreateMetadataMetadata(
|
|
25
25
|
this,
|
|
26
26
|
request,
|
|
27
27
|
options,
|
|
@@ -31,11 +31,11 @@ export class Metadata extends ClientSDK {
|
|
|
31
31
|
/**
|
|
32
32
|
* Retrieve a metadata
|
|
33
33
|
*/
|
|
34
|
-
async
|
|
35
|
-
request: operations.
|
|
34
|
+
async getMetadataMetadata(
|
|
35
|
+
request: operations.GetMetadataMetadataRequest,
|
|
36
36
|
options?: RequestOptions,
|
|
37
|
-
): Promise<shared.
|
|
38
|
-
return unwrapAsync(
|
|
37
|
+
): Promise<shared.MetadataMetadata> {
|
|
38
|
+
return unwrapAsync(metadataGetMetadataMetadata(
|
|
39
39
|
this,
|
|
40
40
|
request,
|
|
41
41
|
options,
|
|
@@ -45,11 +45,11 @@ export class Metadata extends ClientSDK {
|
|
|
45
45
|
/**
|
|
46
46
|
* List all metadatas
|
|
47
47
|
*/
|
|
48
|
-
async
|
|
49
|
-
request: operations.
|
|
48
|
+
async listMetadataMetadatas(
|
|
49
|
+
request: operations.ListMetadataMetadatasRequest,
|
|
50
50
|
options?: RequestOptions,
|
|
51
|
-
): Promise<Array<shared.
|
|
52
|
-
return unwrapAsync(
|
|
51
|
+
): Promise<Array<shared.MetadataMetadata>> {
|
|
52
|
+
return unwrapAsync(metadataListMetadataMetadatas(
|
|
53
53
|
this,
|
|
54
54
|
request,
|
|
55
55
|
options,
|
|
@@ -59,11 +59,11 @@ export class Metadata extends ClientSDK {
|
|
|
59
59
|
/**
|
|
60
60
|
* Update a metadata
|
|
61
61
|
*/
|
|
62
|
-
async
|
|
63
|
-
request: operations.
|
|
62
|
+
async patchMetadataMetadata(
|
|
63
|
+
request: operations.PatchMetadataMetadataRequest,
|
|
64
64
|
options?: RequestOptions,
|
|
65
|
-
): Promise<shared.
|
|
66
|
-
return unwrapAsync(
|
|
65
|
+
): Promise<shared.MetadataMetadata> {
|
|
66
|
+
return unwrapAsync(metadataPatchMetadataMetadata(
|
|
67
67
|
this,
|
|
68
68
|
request,
|
|
69
69
|
options,
|
|
@@ -73,11 +73,11 @@ export class Metadata extends ClientSDK {
|
|
|
73
73
|
/**
|
|
74
74
|
* Remove a metadata
|
|
75
75
|
*/
|
|
76
|
-
async
|
|
77
|
-
request: operations.
|
|
76
|
+
async removeMetadataMetadata(
|
|
77
|
+
request: operations.RemoveMetadataMetadataRequest,
|
|
78
78
|
options?: RequestOptions,
|
|
79
|
-
): Promise<operations.
|
|
80
|
-
return unwrapAsync(
|
|
79
|
+
): Promise<operations.RemoveMetadataMetadataResponse | undefined> {
|
|
80
|
+
return unwrapAsync(metadataRemoveMetadataMetadata(
|
|
81
81
|
this,
|
|
82
82
|
request,
|
|
83
83
|
options,
|
|
@@ -87,11 +87,11 @@ export class Metadata extends ClientSDK {
|
|
|
87
87
|
/**
|
|
88
88
|
* Update a metadata
|
|
89
89
|
*/
|
|
90
|
-
async
|
|
91
|
-
request: operations.
|
|
90
|
+
async updateMetadataMetadata(
|
|
91
|
+
request: operations.UpdateMetadataMetadataRequest,
|
|
92
92
|
options?: RequestOptions,
|
|
93
|
-
): Promise<shared.
|
|
94
|
-
return unwrapAsync(
|
|
93
|
+
): Promise<shared.MetadataMetadata> {
|
|
94
|
+
return unwrapAsync(metadataUpdateMetadataMetadata(
|
|
95
95
|
this,
|
|
96
96
|
request,
|
|
97
97
|
options,
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
import * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type CreateMetadataMetadataRequest = {
|
|
13
|
+
metadataMetadata?: shared.MetadataMetadata | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const CreateMetadataMetadataRequest$inboundSchema: z.ZodType<
|
|
26
|
+
CreateMetadataMetadataRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
MetadataMetadata: shared.MetadataMetadata$inboundSchema.optional(),
|
|
31
|
+
connection_id: z.string(),
|
|
32
|
+
fields: z.array(z.string()).optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"MetadataMetadata": "metadataMetadata",
|
|
36
|
+
"connection_id": "connectionId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CreateMetadataMetadataRequest$Outbound = {
|
|
42
|
+
MetadataMetadata?: shared.MetadataMetadata$Outbound | undefined;
|
|
43
|
+
connection_id: string;
|
|
44
|
+
fields?: Array<string> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CreateMetadataMetadataRequest$outboundSchema: z.ZodType<
|
|
49
|
+
CreateMetadataMetadataRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
CreateMetadataMetadataRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
metadataMetadata: shared.MetadataMetadata$outboundSchema.optional(),
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
metadataMetadata: "MetadataMetadata",
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace CreateMetadataMetadataRequest$ {
|
|
68
|
+
/** @deprecated use `CreateMetadataMetadataRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = CreateMetadataMetadataRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `CreateMetadataMetadataRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = CreateMetadataMetadataRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `CreateMetadataMetadataRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = CreateMetadataMetadataRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function createMetadataMetadataRequestToJSON(
|
|
77
|
+
createMetadataMetadataRequest: CreateMetadataMetadataRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
CreateMetadataMetadataRequest$outboundSchema.parse(
|
|
81
|
+
createMetadataMetadataRequest,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function createMetadataMetadataRequestFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<CreateMetadataMetadataRequest, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => CreateMetadataMetadataRequest$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'CreateMetadataMetadataRequest' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type
|
|
11
|
+
export type GetMetadataMetadataRequest = {
|
|
12
12
|
/**
|
|
13
13
|
* ID of the connection
|
|
14
14
|
*/
|
|
@@ -24,8 +24,8 @@ export type GetCommerceMetadataRequest = {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
/** @internal */
|
|
27
|
-
export const
|
|
28
|
-
|
|
27
|
+
export const GetMetadataMetadataRequest$inboundSchema: z.ZodType<
|
|
28
|
+
GetMetadataMetadataRequest,
|
|
29
29
|
z.ZodTypeDef,
|
|
30
30
|
unknown
|
|
31
31
|
> = z.object({
|
|
@@ -39,17 +39,17 @@ export const GetCommerceMetadataRequest$inboundSchema: z.ZodType<
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
|
-
export type
|
|
42
|
+
export type GetMetadataMetadataRequest$Outbound = {
|
|
43
43
|
connection_id: string;
|
|
44
44
|
fields?: Array<string> | undefined;
|
|
45
45
|
id: string;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
49
|
-
export const
|
|
50
|
-
|
|
49
|
+
export const GetMetadataMetadataRequest$outboundSchema: z.ZodType<
|
|
50
|
+
GetMetadataMetadataRequest$Outbound,
|
|
51
51
|
z.ZodTypeDef,
|
|
52
|
-
|
|
52
|
+
GetMetadataMetadataRequest
|
|
53
53
|
> = z.object({
|
|
54
54
|
connectionId: z.string(),
|
|
55
55
|
fields: z.array(z.string()).optional(),
|
|
@@ -64,29 +64,29 @@ export const GetCommerceMetadataRequest$outboundSchema: z.ZodType<
|
|
|
64
64
|
* @internal
|
|
65
65
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
66
|
*/
|
|
67
|
-
export namespace
|
|
68
|
-
/** @deprecated use `
|
|
69
|
-
export const inboundSchema =
|
|
70
|
-
/** @deprecated use `
|
|
71
|
-
export const outboundSchema =
|
|
72
|
-
/** @deprecated use `
|
|
73
|
-
export type Outbound =
|
|
67
|
+
export namespace GetMetadataMetadataRequest$ {
|
|
68
|
+
/** @deprecated use `GetMetadataMetadataRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = GetMetadataMetadataRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `GetMetadataMetadataRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = GetMetadataMetadataRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `GetMetadataMetadataRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = GetMetadataMetadataRequest$Outbound;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export function
|
|
77
|
-
|
|
76
|
+
export function getMetadataMetadataRequestToJSON(
|
|
77
|
+
getMetadataMetadataRequest: GetMetadataMetadataRequest,
|
|
78
78
|
): string {
|
|
79
79
|
return JSON.stringify(
|
|
80
|
-
|
|
80
|
+
GetMetadataMetadataRequest$outboundSchema.parse(getMetadataMetadataRequest),
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export function
|
|
84
|
+
export function getMetadataMetadataRequestFromJSON(
|
|
85
85
|
jsonString: string,
|
|
86
|
-
): SafeParseResult<
|
|
86
|
+
): SafeParseResult<GetMetadataMetadataRequest, SDKValidationError> {
|
|
87
87
|
return safeParse(
|
|
88
88
|
jsonString,
|
|
89
|
-
(x) =>
|
|
90
|
-
`Failed to parse '
|
|
89
|
+
(x) => GetMetadataMetadataRequest$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'GetMetadataMetadataRequest' from JSON`,
|
|
91
91
|
);
|
|
92
92
|
}
|
|
@@ -40,8 +40,6 @@ export const Scopes = {
|
|
|
40
40
|
CommerceInventoryWrite: "commerce_inventory_write",
|
|
41
41
|
CommerceLocationRead: "commerce_location_read",
|
|
42
42
|
CommerceLocationWrite: "commerce_location_write",
|
|
43
|
-
CommerceMetadataRead: "commerce_metadata_read",
|
|
44
|
-
CommerceMetadataWrite: "commerce_metadata_write",
|
|
45
43
|
AtsActivityRead: "ats_activity_read",
|
|
46
44
|
AtsActivityWrite: "ats_activity_write",
|
|
47
45
|
AtsApplicationRead: "ats_application_read",
|
|
@@ -134,6 +132,8 @@ export const Scopes = {
|
|
|
134
132
|
RepoCommitWrite: "repo_commit_write",
|
|
135
133
|
RepoPullrequestRead: "repo_pullrequest_read",
|
|
136
134
|
RepoPullrequestWrite: "repo_pullrequest_write",
|
|
135
|
+
MetadataMetadataRead: "metadata_metadata_read",
|
|
136
|
+
MetadataMetadataWrite: "metadata_metadata_write",
|
|
137
137
|
} as const;
|
|
138
138
|
export type Scopes = ClosedEnum<typeof Scopes>;
|
|
139
139
|
|
|
@@ -20,7 +20,6 @@ export * from "./createcommercecollection.js";
|
|
|
20
20
|
export * from "./createcommerceinventory.js";
|
|
21
21
|
export * from "./createcommerceitem.js";
|
|
22
22
|
export * from "./createcommercelocation.js";
|
|
23
|
-
export * from "./createcommercemetadata.js";
|
|
24
23
|
export * from "./createcrmcompany.js";
|
|
25
24
|
export * from "./createcrmcontact.js";
|
|
26
25
|
export * from "./createcrmdeal.js";
|
|
@@ -41,6 +40,7 @@ export * from "./createlmsstudent.js";
|
|
|
41
40
|
export * from "./createmartechlist.js";
|
|
42
41
|
export * from "./createmartechmember.js";
|
|
43
42
|
export * from "./createmessagingmessage.js";
|
|
43
|
+
export * from "./createmetadatametadata.js";
|
|
44
44
|
export * from "./createpassthroughjson.js";
|
|
45
45
|
export * from "./createpassthroughraw.js";
|
|
46
46
|
export * from "./createpaymentlink.js";
|
|
@@ -80,7 +80,6 @@ export * from "./getcommercecollection.js";
|
|
|
80
80
|
export * from "./getcommerceinventory.js";
|
|
81
81
|
export * from "./getcommerceitem.js";
|
|
82
82
|
export * from "./getcommercelocation.js";
|
|
83
|
-
export * from "./getcommercemetadata.js";
|
|
84
83
|
export * from "./getcrmcompany.js";
|
|
85
84
|
export * from "./getcrmcontact.js";
|
|
86
85
|
export * from "./getcrmdeal.js";
|
|
@@ -103,6 +102,7 @@ export * from "./getmartechlist.js";
|
|
|
103
102
|
export * from "./getmartechmember.js";
|
|
104
103
|
export * from "./getmessagingchannel.js";
|
|
105
104
|
export * from "./getmessagingmessage.js";
|
|
105
|
+
export * from "./getmetadatametadata.js";
|
|
106
106
|
export * from "./getpaymentlink.js";
|
|
107
107
|
export * from "./getpaymentpayment.js";
|
|
108
108
|
export * from "./getpaymentpayout.js";
|
|
@@ -147,7 +147,6 @@ export * from "./listcommercecollections.js";
|
|
|
147
147
|
export * from "./listcommerceinventories.js";
|
|
148
148
|
export * from "./listcommerceitems.js";
|
|
149
149
|
export * from "./listcommercelocations.js";
|
|
150
|
-
export * from "./listcommercemetadatas.js";
|
|
151
150
|
export * from "./listcrmcompanies.js";
|
|
152
151
|
export * from "./listcrmcontacts.js";
|
|
153
152
|
export * from "./listcrmdeals.js";
|
|
@@ -173,6 +172,7 @@ export * from "./listmartechlists.js";
|
|
|
173
172
|
export * from "./listmartechmembers.js";
|
|
174
173
|
export * from "./listmessagingchannels.js";
|
|
175
174
|
export * from "./listmessagingmessages.js";
|
|
175
|
+
export * from "./listmetadatametadatas.js";
|
|
176
176
|
export * from "./listpassthroughs.js";
|
|
177
177
|
export * from "./listpaymentlinks.js";
|
|
178
178
|
export * from "./listpaymentpayments.js";
|
|
@@ -217,7 +217,6 @@ export * from "./patchcommercecollection.js";
|
|
|
217
217
|
export * from "./patchcommerceinventory.js";
|
|
218
218
|
export * from "./patchcommerceitem.js";
|
|
219
219
|
export * from "./patchcommercelocation.js";
|
|
220
|
-
export * from "./patchcommercemetadata.js";
|
|
221
220
|
export * from "./patchcrmcompany.js";
|
|
222
221
|
export * from "./patchcrmcontact.js";
|
|
223
222
|
export * from "./patchcrmdeal.js";
|
|
@@ -237,6 +236,7 @@ export * from "./patchlmsstudent.js";
|
|
|
237
236
|
export * from "./patchmartechlist.js";
|
|
238
237
|
export * from "./patchmartechmember.js";
|
|
239
238
|
export * from "./patchmessagingmessage.js";
|
|
239
|
+
export * from "./patchmetadatametadata.js";
|
|
240
240
|
export * from "./patchpassthroughjson.js";
|
|
241
241
|
export * from "./patchpassthroughraw.js";
|
|
242
242
|
export * from "./patchpaymentlink.js";
|
|
@@ -276,7 +276,6 @@ export * from "./removecommercecollection.js";
|
|
|
276
276
|
export * from "./removecommerceinventory.js";
|
|
277
277
|
export * from "./removecommerceitem.js";
|
|
278
278
|
export * from "./removecommercelocation.js";
|
|
279
|
-
export * from "./removecommercemetadata.js";
|
|
280
279
|
export * from "./removecrmcompany.js";
|
|
281
280
|
export * from "./removecrmcontact.js";
|
|
282
281
|
export * from "./removecrmdeal.js";
|
|
@@ -296,6 +295,7 @@ export * from "./removelmsstudent.js";
|
|
|
296
295
|
export * from "./removemartechlist.js";
|
|
297
296
|
export * from "./removemartechmember.js";
|
|
298
297
|
export * from "./removemessagingmessage.js";
|
|
298
|
+
export * from "./removemetadatametadata.js";
|
|
299
299
|
export * from "./removepassthrough.js";
|
|
300
300
|
export * from "./removepaymentlink.js";
|
|
301
301
|
export * from "./removepaymentpayment.js";
|
|
@@ -333,7 +333,6 @@ export * from "./updatecommercecollection.js";
|
|
|
333
333
|
export * from "./updatecommerceinventory.js";
|
|
334
334
|
export * from "./updatecommerceitem.js";
|
|
335
335
|
export * from "./updatecommercelocation.js";
|
|
336
|
-
export * from "./updatecommercemetadata.js";
|
|
337
336
|
export * from "./updatecrmcompany.js";
|
|
338
337
|
export * from "./updatecrmcontact.js";
|
|
339
338
|
export * from "./updatecrmdeal.js";
|
|
@@ -353,6 +352,7 @@ export * from "./updatelmsstudent.js";
|
|
|
353
352
|
export * from "./updatemartechlist.js";
|
|
354
353
|
export * from "./updatemartechmember.js";
|
|
355
354
|
export * from "./updatemessagingmessage.js";
|
|
355
|
+
export * from "./updatemetadatametadata.js";
|
|
356
356
|
export * from "./updatepassthroughjson.js";
|
|
357
357
|
export * from "./updatepassthroughraw.js";
|
|
358
358
|
export * from "./updatepaymentlink.js";
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type
|
|
11
|
+
export type ListMetadataMetadatasRequest = {
|
|
12
12
|
/**
|
|
13
13
|
* ID of the connection
|
|
14
14
|
*/
|
|
@@ -25,6 +25,7 @@ export type ListCommerceMetadatasRequest = {
|
|
|
25
25
|
*/
|
|
26
26
|
query?: string | undefined;
|
|
27
27
|
sort?: string | undefined;
|
|
28
|
+
type?: string | undefined;
|
|
28
29
|
/**
|
|
29
30
|
* Return only results whose updated date is equal or greater to this value
|
|
30
31
|
*/
|
|
@@ -32,8 +33,8 @@ export type ListCommerceMetadatasRequest = {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
/** @internal */
|
|
35
|
-
export const
|
|
36
|
-
|
|
36
|
+
export const ListMetadataMetadatasRequest$inboundSchema: z.ZodType<
|
|
37
|
+
ListMetadataMetadatasRequest,
|
|
37
38
|
z.ZodTypeDef,
|
|
38
39
|
unknown
|
|
39
40
|
> = z.object({
|
|
@@ -44,6 +45,7 @@ export const ListCommerceMetadatasRequest$inboundSchema: z.ZodType<
|
|
|
44
45
|
order: z.string().optional(),
|
|
45
46
|
query: z.string().optional(),
|
|
46
47
|
sort: z.string().optional(),
|
|
48
|
+
type: z.string().optional(),
|
|
47
49
|
updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
48
50
|
.optional(),
|
|
49
51
|
}).transform((v) => {
|
|
@@ -54,7 +56,7 @@ export const ListCommerceMetadatasRequest$inboundSchema: z.ZodType<
|
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
/** @internal */
|
|
57
|
-
export type
|
|
59
|
+
export type ListMetadataMetadatasRequest$Outbound = {
|
|
58
60
|
connection_id: string;
|
|
59
61
|
fields?: Array<string> | undefined;
|
|
60
62
|
limit?: number | undefined;
|
|
@@ -62,14 +64,15 @@ export type ListCommerceMetadatasRequest$Outbound = {
|
|
|
62
64
|
order?: string | undefined;
|
|
63
65
|
query?: string | undefined;
|
|
64
66
|
sort?: string | undefined;
|
|
67
|
+
type?: string | undefined;
|
|
65
68
|
updated_gte?: string | undefined;
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
/** @internal */
|
|
69
|
-
export const
|
|
70
|
-
|
|
72
|
+
export const ListMetadataMetadatasRequest$outboundSchema: z.ZodType<
|
|
73
|
+
ListMetadataMetadatasRequest$Outbound,
|
|
71
74
|
z.ZodTypeDef,
|
|
72
|
-
|
|
75
|
+
ListMetadataMetadatasRequest
|
|
73
76
|
> = z.object({
|
|
74
77
|
connectionId: z.string(),
|
|
75
78
|
fields: z.array(z.string()).optional(),
|
|
@@ -78,6 +81,7 @@ export const ListCommerceMetadatasRequest$outboundSchema: z.ZodType<
|
|
|
78
81
|
order: z.string().optional(),
|
|
79
82
|
query: z.string().optional(),
|
|
80
83
|
sort: z.string().optional(),
|
|
84
|
+
type: z.string().optional(),
|
|
81
85
|
updatedGte: z.date().transform(v => v.toISOString()).optional(),
|
|
82
86
|
}).transform((v) => {
|
|
83
87
|
return remap$(v, {
|
|
@@ -90,31 +94,31 @@ export const ListCommerceMetadatasRequest$outboundSchema: z.ZodType<
|
|
|
90
94
|
* @internal
|
|
91
95
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
96
|
*/
|
|
93
|
-
export namespace
|
|
94
|
-
/** @deprecated use `
|
|
95
|
-
export const inboundSchema =
|
|
96
|
-
/** @deprecated use `
|
|
97
|
-
export const outboundSchema =
|
|
98
|
-
/** @deprecated use `
|
|
99
|
-
export type Outbound =
|
|
97
|
+
export namespace ListMetadataMetadatasRequest$ {
|
|
98
|
+
/** @deprecated use `ListMetadataMetadatasRequest$inboundSchema` instead. */
|
|
99
|
+
export const inboundSchema = ListMetadataMetadatasRequest$inboundSchema;
|
|
100
|
+
/** @deprecated use `ListMetadataMetadatasRequest$outboundSchema` instead. */
|
|
101
|
+
export const outboundSchema = ListMetadataMetadatasRequest$outboundSchema;
|
|
102
|
+
/** @deprecated use `ListMetadataMetadatasRequest$Outbound` instead. */
|
|
103
|
+
export type Outbound = ListMetadataMetadatasRequest$Outbound;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
export function
|
|
103
|
-
|
|
106
|
+
export function listMetadataMetadatasRequestToJSON(
|
|
107
|
+
listMetadataMetadatasRequest: ListMetadataMetadatasRequest,
|
|
104
108
|
): string {
|
|
105
109
|
return JSON.stringify(
|
|
106
|
-
|
|
107
|
-
|
|
110
|
+
ListMetadataMetadatasRequest$outboundSchema.parse(
|
|
111
|
+
listMetadataMetadatasRequest,
|
|
108
112
|
),
|
|
109
113
|
);
|
|
110
114
|
}
|
|
111
115
|
|
|
112
|
-
export function
|
|
116
|
+
export function listMetadataMetadatasRequestFromJSON(
|
|
113
117
|
jsonString: string,
|
|
114
|
-
): SafeParseResult<
|
|
118
|
+
): SafeParseResult<ListMetadataMetadatasRequest, SDKValidationError> {
|
|
115
119
|
return safeParse(
|
|
116
120
|
jsonString,
|
|
117
|
-
(x) =>
|
|
118
|
-
`Failed to parse '
|
|
121
|
+
(x) => ListMetadataMetadatasRequest$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'ListMetadataMetadatasRequest' from JSON`,
|
|
119
123
|
);
|
|
120
124
|
}
|