@wix/auto_sdk_ecom_tax-groups 1.0.33 → 1.0.35

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.
@@ -230,6 +230,148 @@ interface BulkActionMetadata {
230
230
  /** Number of failures without details because detailed failure threshold was exceeded. */
231
231
  undetailedFailures?: number;
232
232
  }
233
+ interface DomainEvent extends DomainEventBodyOneOf {
234
+ createdEvent?: EntityCreatedEvent;
235
+ updatedEvent?: EntityUpdatedEvent;
236
+ deletedEvent?: EntityDeletedEvent;
237
+ actionEvent?: ActionEvent;
238
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
239
+ id?: string;
240
+ /**
241
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
242
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
243
+ */
244
+ entityFqdn?: string;
245
+ /**
246
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
247
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
248
+ */
249
+ slug?: string;
250
+ /** ID of the entity associated with the event. */
251
+ entityId?: string;
252
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
253
+ eventTime?: Date | null;
254
+ /**
255
+ * Whether the event was triggered as a result of a privacy regulation application
256
+ * (for example, GDPR).
257
+ */
258
+ triggeredByAnonymizeRequest?: boolean | null;
259
+ /** If present, indicates the action that triggered the event. */
260
+ originatedFrom?: string | null;
261
+ /**
262
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
263
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
264
+ */
265
+ entityEventSequence?: string | null;
266
+ }
267
+ /** @oneof */
268
+ interface DomainEventBodyOneOf {
269
+ createdEvent?: EntityCreatedEvent;
270
+ updatedEvent?: EntityUpdatedEvent;
271
+ deletedEvent?: EntityDeletedEvent;
272
+ actionEvent?: ActionEvent;
273
+ }
274
+ interface EntityCreatedEvent {
275
+ entityAsJson?: string;
276
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
277
+ restoreInfo?: RestoreInfo;
278
+ }
279
+ interface RestoreInfo {
280
+ deletedDate?: Date | null;
281
+ }
282
+ interface EntityUpdatedEvent {
283
+ /**
284
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
285
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
286
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
287
+ */
288
+ currentEntityAsJson?: string;
289
+ }
290
+ interface EntityDeletedEvent {
291
+ /** Entity that was deleted. */
292
+ deletedEntityAsJson?: string | null;
293
+ }
294
+ interface ActionEvent {
295
+ bodyAsJson?: string;
296
+ }
297
+ interface MessageEnvelope {
298
+ /**
299
+ * App instance ID.
300
+ * @format GUID
301
+ */
302
+ instanceId?: string | null;
303
+ /**
304
+ * Event type.
305
+ * @maxLength 150
306
+ */
307
+ eventType?: string;
308
+ /** The identification type and identity data. */
309
+ identity?: IdentificationData;
310
+ /** Stringify payload. */
311
+ data?: string;
312
+ }
313
+ interface IdentificationData extends IdentificationDataIdOneOf {
314
+ /**
315
+ * ID of a site visitor that has not logged in to the site.
316
+ * @format GUID
317
+ */
318
+ anonymousVisitorId?: string;
319
+ /**
320
+ * ID of a site visitor that has logged in to the site.
321
+ * @format GUID
322
+ */
323
+ memberId?: string;
324
+ /**
325
+ * ID of a Wix user (site owner, contributor, etc.).
326
+ * @format GUID
327
+ */
328
+ wixUserId?: string;
329
+ /**
330
+ * ID of an app.
331
+ * @format GUID
332
+ */
333
+ appId?: string;
334
+ /** @readonly */
335
+ identityType?: WebhookIdentityTypeWithLiterals;
336
+ }
337
+ /** @oneof */
338
+ interface IdentificationDataIdOneOf {
339
+ /**
340
+ * ID of a site visitor that has not logged in to the site.
341
+ * @format GUID
342
+ */
343
+ anonymousVisitorId?: string;
344
+ /**
345
+ * ID of a site visitor that has logged in to the site.
346
+ * @format GUID
347
+ */
348
+ memberId?: string;
349
+ /**
350
+ * ID of a Wix user (site owner, contributor, etc.).
351
+ * @format GUID
352
+ */
353
+ wixUserId?: string;
354
+ /**
355
+ * ID of an app.
356
+ * @format GUID
357
+ */
358
+ appId?: string;
359
+ }
360
+ declare enum WebhookIdentityType {
361
+ UNKNOWN = "UNKNOWN",
362
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
363
+ MEMBER = "MEMBER",
364
+ WIX_USER = "WIX_USER",
365
+ APP = "APP"
366
+ }
367
+ /** @enumType */
368
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
369
+ /** @docsIgnore */
370
+ type UpdateTaxGroupApplicationErrors = {
371
+ code?: 'ILLEGAL_UPDATE_ON_SYSTEM_DEFINED_TAX_GROUP';
372
+ description?: string;
373
+ data?: Record<string, any>;
374
+ };
233
375
 
234
376
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
235
377
  getUrl: (context: any) => string;
@@ -255,4 +397,4 @@ declare function queryTaxGroups(): __PublicMethodMetaInfo<'POST', {}, QueryTaxGr
255
397
  declare function listDefaultTaxGroups(): __PublicMethodMetaInfo<'GET', {}, ListDefaultTaxGroupsRequest$1, ListDefaultTaxGroupsRequest, ListDefaultTaxGroupsResponse$1, ListDefaultTaxGroupsResponse>;
256
398
  declare function listDefaultTaxGroupsByAppIds(): __PublicMethodMetaInfo<'POST', {}, ListDefaultTaxGroupsByAppIdsRequest$1, ListDefaultTaxGroupsByAppIdsRequest, ListDefaultTaxGroupsByAppIdsResponse$1, ListDefaultTaxGroupsByAppIdsResponse>;
257
399
 
258
- export { type __PublicMethodMetaInfo, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, queryTaxGroups, updateTaxGroup };
400
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type CreateTaxGroupRequest as CreateTaxGroupRequestOriginal, type CreateTaxGroupResponse as CreateTaxGroupResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteTaxGroupRequest as DeleteTaxGroupRequestOriginal, type DeleteTaxGroupResponse as DeleteTaxGroupResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetTaxGroupRequest as GetTaxGroupRequestOriginal, type GetTaxGroupResponse as GetTaxGroupResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListDefaultTaxGroupsByAppIdsRequest as ListDefaultTaxGroupsByAppIdsRequestOriginal, type ListDefaultTaxGroupsByAppIdsResponse as ListDefaultTaxGroupsByAppIdsResponseOriginal, type ListDefaultTaxGroupsByAppIdsResult as ListDefaultTaxGroupsByAppIdsResultOriginal, type ListDefaultTaxGroupsRequest as ListDefaultTaxGroupsRequestOriginal, type ListDefaultTaxGroupsResponse as ListDefaultTaxGroupsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Paging as PagingOriginal, type QueryTaxGroupsRequest as QueryTaxGroupsRequestOriginal, type QueryTaxGroupsResponse as QueryTaxGroupsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TaxGroup as TaxGroupOriginal, type UpdateTaxGroupApplicationErrors as UpdateTaxGroupApplicationErrorsOriginal, type UpdateTaxGroupRequest as UpdateTaxGroupRequestOriginal, type UpdateTaxGroupResponse as UpdateTaxGroupResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, queryTaxGroups, updateTaxGroup };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ SortOrderOriginal: () => SortOrder,
24
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
25
  createTaxGroup: () => createTaxGroup2,
24
26
  deleteTaxGroup: () => deleteTaxGroup2,
25
27
  getTaxGroup: () => getTaxGroup2,
@@ -291,6 +293,21 @@ function listDefaultTaxGroupsByAppIds(payload) {
291
293
  return __listDefaultTaxGroupsByAppIds;
292
294
  }
293
295
 
296
+ // src/billing-v1-tax-group-tax-groups.types.ts
297
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
298
+ SortOrder2["ASC"] = "ASC";
299
+ SortOrder2["DESC"] = "DESC";
300
+ return SortOrder2;
301
+ })(SortOrder || {});
302
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
303
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
304
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
305
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
306
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
307
+ WebhookIdentityType2["APP"] = "APP";
308
+ return WebhookIdentityType2;
309
+ })(WebhookIdentityType || {});
310
+
294
311
  // src/billing-v1-tax-group-tax-groups.meta.ts
295
312
  function createTaxGroup2() {
296
313
  const payload = {};
@@ -420,6 +437,8 @@ function listDefaultTaxGroupsByAppIds2() {
420
437
  }
421
438
  // Annotate the CommonJS export names for ESM import in node:
422
439
  0 && (module.exports = {
440
+ SortOrderOriginal,
441
+ WebhookIdentityTypeOriginal,
423
442
  createTaxGroup,
424
443
  deleteTaxGroup,
425
444
  getTaxGroup,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/billing-v1-tax-group-tax-groups.http.ts","../../src/billing-v1-tax-group-tax-groups.meta.ts"],"sourcesContent":["export * from './src/billing-v1-tax-group-tax-groups.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBillingV1TaxGroupsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n _: [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tax-groups';\n\n/**\n * Creates a tax group.\n *\n * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment.\n * Wix uses tax groups to calculate tax.\n *\n * In addition to tax groups you create, default tax groups are already included in all Wix catalogs.\n * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only)\n * to create new default tax groups that can be applied directly to an entire catalog of products.\n */\nexport function createTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __createTaxGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.CreateTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTaxGroup;\n}\n\n/** Retrieves a tax group. */\nexport function getTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __getTaxGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.GetTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTaxGroup;\n}\n\n/**\n * Updates a tax group.\n *\n * Each time the tax group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax group.\n * This ensures you're working with the latest tax group and prevents\n * unintended overwrites.\n */\nexport function updateTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __updateTaxGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'PATCH' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.UpdateTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroup.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTaxGroup;\n}\n\n/**\n * Deletes a tax group.\n *\n * If a tax group is deleted but the `taxGroupId` is still assigned to a product (see Stores Products API) then the default tax group is used to calculate tax.\n */\nexport function deleteTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __deleteTaxGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'DELETE' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.DeleteTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTaxGroup;\n}\n\n/**\n * Creates a query to retrieve a list of tax groups.\n *\n * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` function.\n *\n * You can refine the query by chaining `TaxGroupsQueryBuilder` functions onto the query. `TaxGroupsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTaxGroups()` returns.\n *\n * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * The functions that are chained to `queryTaxGroups()` are applied in the order they are called. For example, if you apply `ascending(\"name\")` and then `ascending(\"_createdDate\")`, the results are sorted first by the `\"name\"`, and then, if there are multiple results with the same `\"name\"`, the items are sorted by `\"_createdDate\"`.\n *\n * The following `TaxGroupsQueryBuilder` functions are supported for the `queryTaxGroups()` function. For a full description of the tax group object, see the object returned for the `items` property in `TaxGroupsQueryResult`.\n */\nexport function queryTaxGroups(payload: object): RequestOptionsFactory<any> {\n function __queryTaxGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.QueryTaxGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroups.createdDate' },\n { path: 'taxGroups.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTaxGroups;\n}\n\n/**\n * Retrieves a list of default tax groups.\n *\n * The default tax groups for a site are inherited by the apps installed on the site.\n * For example, the Wix Stores app includes a `\"Products\"` tax group by default.\n *\n * Add additional default tax groups with the Tax Groups Integration service plugin (REST only).\n */\nexport function listDefaultTaxGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDefaultTaxGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.ListDefaultTaxGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/default-tax-groups',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroups.createdDate' },\n { path: 'taxGroups.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDefaultTaxGroups;\n}\n\n/** Retrieves default tax groups for specific apps. */\nexport function listDefaultTaxGroupsByAppIds(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDefaultTaxGroupsByAppIds({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.ListDefaultTaxGroupsByAppIds',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/list-default-tax-groups-by-app-ids',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.taxGroup.createdDate' },\n { path: 'results.taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDefaultTaxGroupsByAppIds;\n}\n","import * as ambassadorWixBillingV1TaxGroup from './billing-v1-tax-group-tax-groups.http.js';\nimport * as ambassadorWixBillingV1TaxGroupTypes from './billing-v1-tax-group-tax-groups.types.js';\nimport * as ambassadorWixBillingV1TaxGroupUniversalTypes from './billing-v1-tax-group-tax-groups.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createTaxGroup(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.CreateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.CreateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.CreateTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.CreateTaxGroupResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.createTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-groups',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTaxGroup(): __PublicMethodMetaInfo<\n 'GET',\n { taxGroupId: string },\n ambassadorWixBillingV1TaxGroupUniversalTypes.GetTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.GetTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.GetTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.GetTaxGroupResponse\n> {\n const payload = { taxGroupId: ':taxGroupId' } as any;\n\n const getRequestOptions = ambassadorWixBillingV1TaxGroup.getTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/tax-groups/{taxGroupId}',\n pathParams: { taxGroupId: 'taxGroupId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTaxGroup(): __PublicMethodMetaInfo<\n 'PATCH',\n { taxGroupId: string },\n ambassadorWixBillingV1TaxGroupUniversalTypes.UpdateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.UpdateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.UpdateTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.UpdateTaxGroupResponse\n> {\n const payload = { taxGroup: { id: ':taxGroupId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.updateTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/tax-groups/{taxGroup.id}',\n pathParams: { taxGroupId: 'taxGroupId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTaxGroup(): __PublicMethodMetaInfo<\n 'DELETE',\n { taxGroupId: string },\n ambassadorWixBillingV1TaxGroupUniversalTypes.DeleteTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.DeleteTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.DeleteTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.DeleteTaxGroupResponse\n> {\n const payload = { taxGroupId: ':taxGroupId' } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.deleteTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/tax-groups/{taxGroupId}',\n pathParams: { taxGroupId: 'taxGroupId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTaxGroups(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.QueryTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupTypes.QueryTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.QueryTaxGroupsResponse,\n ambassadorWixBillingV1TaxGroupTypes.QueryTaxGroupsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.queryTaxGroups(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-groups/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listDefaultTaxGroups(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsResponse,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.listDefaultTaxGroups(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/tax-groups/default-tax-groups',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listDefaultTaxGroupsByAppIds(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsByAppIdsRequest,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsByAppIdsRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsByAppIdsResponse,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsByAppIdsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.listDefaultTaxGroupsByAppIds(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-groups/list-default-tax-groups-by-app-ids',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,oCAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,gCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAYd,SAAS,e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C,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,6BAA6B,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createTaxGroup","deleteTaxGroup","getTaxGroup","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds","queryTaxGroups","updateTaxGroup","import_timestamp","import_rest_modules","payload","createTaxGroup","getTaxGroup","updateTaxGroup","deleteTaxGroup","queryTaxGroups","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/billing-v1-tax-group-tax-groups.http.ts","../../src/billing-v1-tax-group-tax-groups.types.ts","../../src/billing-v1-tax-group-tax-groups.meta.ts"],"sourcesContent":["export * from './src/billing-v1-tax-group-tax-groups.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBillingV1TaxGroupsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n _: [\n {\n srcPath: '/billing/v1/tax-groups',\n destPath: '/v1/tax-groups',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tax-groups';\n\n/**\n * Creates a tax group.\n *\n * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment.\n * Wix uses tax groups to calculate tax.\n *\n * In addition to tax groups you create, default tax groups are already included in all Wix catalogs.\n * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only)\n * to create new default tax groups that can be applied directly to an entire catalog of products.\n */\nexport function createTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __createTaxGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.CreateTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTaxGroup;\n}\n\n/** Retrieves a tax group. */\nexport function getTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __getTaxGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.GetTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTaxGroup;\n}\n\n/**\n * Updates a tax group.\n *\n * Each time the tax group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the tax group.\n * This ensures you're working with the latest tax group and prevents\n * unintended overwrites.\n */\nexport function updateTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __updateTaxGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'PATCH' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.UpdateTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroup.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroup.createdDate' },\n { path: 'taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTaxGroup;\n}\n\n/**\n * Deletes a tax group.\n *\n * If a tax group is deleted but the `taxGroupId` is still assigned to a product (see Stores Products API) then the default tax group is used to calculate tax.\n */\nexport function deleteTaxGroup(payload: object): RequestOptionsFactory<any> {\n function __deleteTaxGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'DELETE' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.DeleteTaxGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/{taxGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTaxGroup;\n}\n\n/**\n * Creates a query to retrieve a list of tax groups.\n *\n * The `queryTaxGroups()` function builds a query to retrieve a list of tax groups and returns a `TaxGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` function.\n *\n * You can refine the query by chaining `TaxGroupsQueryBuilder` functions onto the query. `TaxGroupsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTaxGroups()` returns.\n *\n * `queryTaxGroups()` runs with the following `TaxGroupsQueryBuilder` default that you can override:\n * + `ascending(\"_id\")`\n *\n * The functions that are chained to `queryTaxGroups()` are applied in the order they are called. For example, if you apply `ascending(\"name\")` and then `ascending(\"_createdDate\")`, the results are sorted first by the `\"name\"`, and then, if there are multiple results with the same `\"name\"`, the items are sorted by `\"_createdDate\"`.\n *\n * The following `TaxGroupsQueryBuilder` functions are supported for the `queryTaxGroups()` function. For a full description of the tax group object, see the object returned for the `items` property in `TaxGroupsQueryResult`.\n */\nexport function queryTaxGroups(payload: object): RequestOptionsFactory<any> {\n function __queryTaxGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.QueryTaxGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroups.createdDate' },\n { path: 'taxGroups.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTaxGroups;\n}\n\n/**\n * Retrieves a list of default tax groups.\n *\n * The default tax groups for a site are inherited by the apps installed on the site.\n * For example, the Wix Stores app includes a `\"Products\"` tax group by default.\n *\n * Add additional default tax groups with the Tax Groups Integration service plugin (REST only).\n */\nexport function listDefaultTaxGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDefaultTaxGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'GET' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.ListDefaultTaxGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/default-tax-groups',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'taxGroups.createdDate' },\n { path: 'taxGroups.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDefaultTaxGroups;\n}\n\n/** Retrieves default tax groups for specific apps. */\nexport function listDefaultTaxGroupsByAppIds(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDefaultTaxGroupsByAppIds({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.billing.v1.tax_group',\n method: 'POST' as any,\n methodFqn: 'wix.billing.v1.TaxGroups.ListDefaultTaxGroupsByAppIds',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBillingV1TaxGroupsUrl({\n protoPath: '/v1/tax-groups/list-default-tax-groups-by-app-ids',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.taxGroup.createdDate' },\n { path: 'results.taxGroup.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDefaultTaxGroupsByAppIds;\n}\n","/**\n * A tax group is a category of specific line items grouped together based on their tax treatment.\n * You can create new tax groups to apply distinct tax rates and rules.\n */\nexport interface TaxGroup {\n /**\n * Tax group ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Tax group name.\n * @minLength 1\n * @maxLength 200\n */\n name?: string;\n /**\n * Revision number, which increments by 1 each time the tax group is updated. To prevent conflicting changes,\n * the current revision must be passed when updating the tax group.\n *\n * Ignored when creating a tax group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the tax group was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the tax group was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n}\n\nexport interface CreateTaxGroupRequest {\n /** Tax group to create. */\n taxGroup: TaxGroup;\n}\n\nexport interface CreateTaxGroupResponse {\n /** Created tax group. */\n taxGroup?: TaxGroup;\n}\n\nexport interface GetTaxGroupRequest {\n /**\n * ID of the tax group to retrieve.\n * @format GUID\n */\n taxGroupId: string;\n}\n\nexport interface GetTaxGroupResponse {\n /** Retrieved tax group. */\n taxGroup?: TaxGroup;\n}\n\nexport interface UpdateTaxGroupRequest {\n /** Tax group info to update. */\n taxGroup: TaxGroup;\n}\n\nexport interface UpdateTaxGroupResponse {\n /** Updated tax group. */\n taxGroup?: TaxGroup;\n}\n\nexport interface DeleteTaxGroupRequest {\n /**\n * ID of the tax group to delete.\n * @format GUID\n */\n taxGroupId: string;\n}\n\nexport interface DeleteTaxGroupResponse {}\n\nexport interface QueryTaxGroupsRequest {\n /** Query options. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\n /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n fields?: string[];\n /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTaxGroupsResponse {\n /** Retrieved default tax groups. */\n taxGroups?: TaxGroup[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ListDefaultTaxGroupsRequest {}\n\nexport interface ListDefaultTaxGroupsResponse {\n /** Retrieved default tax groups. */\n taxGroups?: TaxGroup[];\n}\n\nexport interface ListDefaultTaxGroupsByAppIdsRequest {\n /**\n * App IDs to retrieve default tax groups for.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n */\n appIds: string[];\n}\n\nexport interface ListDefaultTaxGroupsByAppIdsResponse {\n /**\n * Retrieved default tax groups.\n * @minSize 1\n * @maxSize 300\n */\n results?: ListDefaultTaxGroupsByAppIdsResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ListDefaultTaxGroupsByAppIdsResult {\n /** Information about success or failure to retrieve default tax groups. */\n taxGroupMetadata?: ItemMetadata;\n /** Retrieved default tax groups. */\n taxGroup?: TaxGroup;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type UpdateTaxGroupApplicationErrors = {\n code?: 'ILLEGAL_UPDATE_ON_SYSTEM_DEFINED_TAX_GROUP';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixBillingV1TaxGroup from './billing-v1-tax-group-tax-groups.http.js';\nimport * as ambassadorWixBillingV1TaxGroupTypes from './billing-v1-tax-group-tax-groups.types.js';\nimport * as ambassadorWixBillingV1TaxGroupUniversalTypes from './billing-v1-tax-group-tax-groups.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createTaxGroup(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.CreateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.CreateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.CreateTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.CreateTaxGroupResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.createTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-groups',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTaxGroup(): __PublicMethodMetaInfo<\n 'GET',\n { taxGroupId: string },\n ambassadorWixBillingV1TaxGroupUniversalTypes.GetTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.GetTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.GetTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.GetTaxGroupResponse\n> {\n const payload = { taxGroupId: ':taxGroupId' } as any;\n\n const getRequestOptions = ambassadorWixBillingV1TaxGroup.getTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/tax-groups/{taxGroupId}',\n pathParams: { taxGroupId: 'taxGroupId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTaxGroup(): __PublicMethodMetaInfo<\n 'PATCH',\n { taxGroupId: string },\n ambassadorWixBillingV1TaxGroupUniversalTypes.UpdateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.UpdateTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.UpdateTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.UpdateTaxGroupResponse\n> {\n const payload = { taxGroup: { id: ':taxGroupId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.updateTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/tax-groups/{taxGroup.id}',\n pathParams: { taxGroupId: 'taxGroupId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTaxGroup(): __PublicMethodMetaInfo<\n 'DELETE',\n { taxGroupId: string },\n ambassadorWixBillingV1TaxGroupUniversalTypes.DeleteTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupTypes.DeleteTaxGroupRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.DeleteTaxGroupResponse,\n ambassadorWixBillingV1TaxGroupTypes.DeleteTaxGroupResponse\n> {\n const payload = { taxGroupId: ':taxGroupId' } as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.deleteTaxGroup(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/tax-groups/{taxGroupId}',\n pathParams: { taxGroupId: 'taxGroupId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryTaxGroups(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.QueryTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupTypes.QueryTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.QueryTaxGroupsResponse,\n ambassadorWixBillingV1TaxGroupTypes.QueryTaxGroupsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.queryTaxGroups(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-groups/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listDefaultTaxGroups(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsResponse,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.listDefaultTaxGroups(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/tax-groups/default-tax-groups',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listDefaultTaxGroupsByAppIds(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsByAppIdsRequest,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsByAppIdsRequest,\n ambassadorWixBillingV1TaxGroupUniversalTypes.ListDefaultTaxGroupsByAppIdsResponse,\n ambassadorWixBillingV1TaxGroupTypes.ListDefaultTaxGroupsByAppIdsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBillingV1TaxGroup.listDefaultTaxGroupsByAppIds(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tax-groups/list-default-tax-groups-by-app-ids',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n TaxGroup as TaxGroupOriginal,\n CreateTaxGroupRequest as CreateTaxGroupRequestOriginal,\n CreateTaxGroupResponse as CreateTaxGroupResponseOriginal,\n GetTaxGroupRequest as GetTaxGroupRequestOriginal,\n GetTaxGroupResponse as GetTaxGroupResponseOriginal,\n UpdateTaxGroupRequest as UpdateTaxGroupRequestOriginal,\n UpdateTaxGroupResponse as UpdateTaxGroupResponseOriginal,\n DeleteTaxGroupRequest as DeleteTaxGroupRequestOriginal,\n DeleteTaxGroupResponse as DeleteTaxGroupResponseOriginal,\n QueryTaxGroupsRequest as QueryTaxGroupsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTaxGroupsResponse as QueryTaxGroupsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n ListDefaultTaxGroupsRequest as ListDefaultTaxGroupsRequestOriginal,\n ListDefaultTaxGroupsResponse as ListDefaultTaxGroupsResponseOriginal,\n ListDefaultTaxGroupsByAppIdsRequest as ListDefaultTaxGroupsByAppIdsRequestOriginal,\n ListDefaultTaxGroupsByAppIdsResponse as ListDefaultTaxGroupsByAppIdsResponseOriginal,\n ListDefaultTaxGroupsByAppIdsResult as ListDefaultTaxGroupsByAppIdsResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n UpdateTaxGroupApplicationErrors as UpdateTaxGroupApplicationErrorsOriginal,\n} from './billing-v1-tax-group-tax-groups.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sB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B,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,6BAA6B,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createTaxGroup","deleteTaxGroup","getTaxGroup","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds","queryTaxGroups","updateTaxGroup","import_timestamp","import_rest_modules","payload","SortOrder","WebhookIdentityType","createTaxGroup","getTaxGroup","updateTaxGroup","deleteTaxGroup","queryTaxGroups","listDefaultTaxGroups","listDefaultTaxGroupsByAppIds"]}
@@ -230,6 +230,148 @@ interface BulkActionMetadata {
230
230
  /** Number of failures without details because detailed failure threshold was exceeded. */
231
231
  undetailedFailures?: number;
232
232
  }
233
+ interface DomainEvent extends DomainEventBodyOneOf {
234
+ createdEvent?: EntityCreatedEvent;
235
+ updatedEvent?: EntityUpdatedEvent;
236
+ deletedEvent?: EntityDeletedEvent;
237
+ actionEvent?: ActionEvent;
238
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
239
+ id?: string;
240
+ /**
241
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
242
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
243
+ */
244
+ entityFqdn?: string;
245
+ /**
246
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
247
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
248
+ */
249
+ slug?: string;
250
+ /** ID of the entity associated with the event. */
251
+ entityId?: string;
252
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
253
+ eventTime?: Date | null;
254
+ /**
255
+ * Whether the event was triggered as a result of a privacy regulation application
256
+ * (for example, GDPR).
257
+ */
258
+ triggeredByAnonymizeRequest?: boolean | null;
259
+ /** If present, indicates the action that triggered the event. */
260
+ originatedFrom?: string | null;
261
+ /**
262
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
263
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
264
+ */
265
+ entityEventSequence?: string | null;
266
+ }
267
+ /** @oneof */
268
+ interface DomainEventBodyOneOf {
269
+ createdEvent?: EntityCreatedEvent;
270
+ updatedEvent?: EntityUpdatedEvent;
271
+ deletedEvent?: EntityDeletedEvent;
272
+ actionEvent?: ActionEvent;
273
+ }
274
+ interface EntityCreatedEvent {
275
+ entityAsJson?: string;
276
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
277
+ restoreInfo?: RestoreInfo;
278
+ }
279
+ interface RestoreInfo {
280
+ deletedDate?: Date | null;
281
+ }
282
+ interface EntityUpdatedEvent {
283
+ /**
284
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
285
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
286
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
287
+ */
288
+ currentEntityAsJson?: string;
289
+ }
290
+ interface EntityDeletedEvent {
291
+ /** Entity that was deleted. */
292
+ deletedEntityAsJson?: string | null;
293
+ }
294
+ interface ActionEvent {
295
+ bodyAsJson?: string;
296
+ }
297
+ interface MessageEnvelope {
298
+ /**
299
+ * App instance ID.
300
+ * @format GUID
301
+ */
302
+ instanceId?: string | null;
303
+ /**
304
+ * Event type.
305
+ * @maxLength 150
306
+ */
307
+ eventType?: string;
308
+ /** The identification type and identity data. */
309
+ identity?: IdentificationData;
310
+ /** Stringify payload. */
311
+ data?: string;
312
+ }
313
+ interface IdentificationData extends IdentificationDataIdOneOf {
314
+ /**
315
+ * ID of a site visitor that has not logged in to the site.
316
+ * @format GUID
317
+ */
318
+ anonymousVisitorId?: string;
319
+ /**
320
+ * ID of a site visitor that has logged in to the site.
321
+ * @format GUID
322
+ */
323
+ memberId?: string;
324
+ /**
325
+ * ID of a Wix user (site owner, contributor, etc.).
326
+ * @format GUID
327
+ */
328
+ wixUserId?: string;
329
+ /**
330
+ * ID of an app.
331
+ * @format GUID
332
+ */
333
+ appId?: string;
334
+ /** @readonly */
335
+ identityType?: WebhookIdentityTypeWithLiterals;
336
+ }
337
+ /** @oneof */
338
+ interface IdentificationDataIdOneOf {
339
+ /**
340
+ * ID of a site visitor that has not logged in to the site.
341
+ * @format GUID
342
+ */
343
+ anonymousVisitorId?: string;
344
+ /**
345
+ * ID of a site visitor that has logged in to the site.
346
+ * @format GUID
347
+ */
348
+ memberId?: string;
349
+ /**
350
+ * ID of a Wix user (site owner, contributor, etc.).
351
+ * @format GUID
352
+ */
353
+ wixUserId?: string;
354
+ /**
355
+ * ID of an app.
356
+ * @format GUID
357
+ */
358
+ appId?: string;
359
+ }
360
+ declare enum WebhookIdentityType {
361
+ UNKNOWN = "UNKNOWN",
362
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
363
+ MEMBER = "MEMBER",
364
+ WIX_USER = "WIX_USER",
365
+ APP = "APP"
366
+ }
367
+ /** @enumType */
368
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
369
+ /** @docsIgnore */
370
+ type UpdateTaxGroupApplicationErrors = {
371
+ code?: 'ILLEGAL_UPDATE_ON_SYSTEM_DEFINED_TAX_GROUP';
372
+ description?: string;
373
+ data?: Record<string, any>;
374
+ };
233
375
 
234
376
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
235
377
  getUrl: (context: any) => string;
@@ -255,4 +397,4 @@ declare function queryTaxGroups(): __PublicMethodMetaInfo<'POST', {}, QueryTaxGr
255
397
  declare function listDefaultTaxGroups(): __PublicMethodMetaInfo<'GET', {}, ListDefaultTaxGroupsRequest$1, ListDefaultTaxGroupsRequest, ListDefaultTaxGroupsResponse$1, ListDefaultTaxGroupsResponse>;
256
398
  declare function listDefaultTaxGroupsByAppIds(): __PublicMethodMetaInfo<'POST', {}, ListDefaultTaxGroupsByAppIdsRequest$1, ListDefaultTaxGroupsByAppIdsRequest, ListDefaultTaxGroupsByAppIdsResponse$1, ListDefaultTaxGroupsByAppIdsResponse>;
257
399
 
258
- export { type __PublicMethodMetaInfo, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, queryTaxGroups, updateTaxGroup };
400
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type CreateTaxGroupRequest as CreateTaxGroupRequestOriginal, type CreateTaxGroupResponse as CreateTaxGroupResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteTaxGroupRequest as DeleteTaxGroupRequestOriginal, type DeleteTaxGroupResponse as DeleteTaxGroupResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetTaxGroupRequest as GetTaxGroupRequestOriginal, type GetTaxGroupResponse as GetTaxGroupResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListDefaultTaxGroupsByAppIdsRequest as ListDefaultTaxGroupsByAppIdsRequestOriginal, type ListDefaultTaxGroupsByAppIdsResponse as ListDefaultTaxGroupsByAppIdsResponseOriginal, type ListDefaultTaxGroupsByAppIdsResult as ListDefaultTaxGroupsByAppIdsResultOriginal, type ListDefaultTaxGroupsRequest as ListDefaultTaxGroupsRequestOriginal, type ListDefaultTaxGroupsResponse as ListDefaultTaxGroupsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Paging as PagingOriginal, type QueryTaxGroupsRequest as QueryTaxGroupsRequestOriginal, type QueryTaxGroupsResponse as QueryTaxGroupsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type TaxGroup as TaxGroupOriginal, type UpdateTaxGroupApplicationErrors as UpdateTaxGroupApplicationErrorsOriginal, type UpdateTaxGroupRequest as UpdateTaxGroupRequestOriginal, type UpdateTaxGroupResponse as UpdateTaxGroupResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, queryTaxGroups, updateTaxGroup };
package/build/es/meta.mjs CHANGED
@@ -259,6 +259,21 @@ function listDefaultTaxGroupsByAppIds(payload) {
259
259
  return __listDefaultTaxGroupsByAppIds;
260
260
  }
261
261
 
262
+ // src/billing-v1-tax-group-tax-groups.types.ts
263
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
264
+ SortOrder2["ASC"] = "ASC";
265
+ SortOrder2["DESC"] = "DESC";
266
+ return SortOrder2;
267
+ })(SortOrder || {});
268
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
269
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
270
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
271
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
272
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
273
+ WebhookIdentityType2["APP"] = "APP";
274
+ return WebhookIdentityType2;
275
+ })(WebhookIdentityType || {});
276
+
262
277
  // src/billing-v1-tax-group-tax-groups.meta.ts
263
278
  function createTaxGroup2() {
264
279
  const payload = {};
@@ -387,6 +402,8 @@ function listDefaultTaxGroupsByAppIds2() {
387
402
  };
388
403
  }
389
404
  export {
405
+ SortOrder as SortOrderOriginal,
406
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
390
407
  createTaxGroup2 as createTaxGroup,
391
408
  deleteTaxGroup2 as deleteTaxGroup,
392
409
  getTaxGroup2 as getTaxGroup,