@wix/auto_sdk_ecom_shippo-configurations 1.0.6 → 1.0.7

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.
Files changed (130) hide show
  1. package/build/{internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.mts} +58 -163
  2. package/build/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.ts} +58 -163
  3. package/build/index.d.mts +78 -0
  4. package/build/index.d.ts +78 -0
  5. package/build/index.js +734 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +696 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → internal/ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.mts} +58 -163
  10. package/build/internal/{es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts → ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.d.ts} +58 -163
  11. package/build/internal/index.d.mts +78 -0
  12. package/build/internal/index.d.ts +78 -0
  13. package/build/internal/index.js +734 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +696 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → internal/meta.d.mts} +62 -183
  18. package/build/internal/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.ts} +62 -183
  19. package/build/internal/meta.js +417 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +385 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.mts} +62 -183
  24. package/build/{internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts → meta.d.ts} +62 -183
  25. package/build/meta.js +417 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +385 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -20
  40. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -29
  41. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -22
  43. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -288
  44. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -26
  46. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -144
  47. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -67
  49. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -96
  50. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -48
  52. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -362
  54. package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -20
  66. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -20
  67. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
  68. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -22
  69. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -279
  70. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
  71. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -26
  72. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -112
  73. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
  74. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -67
  75. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -81
  76. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
  77. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -45
  78. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
  79. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -330
  80. package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -20
  91. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -29
  92. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
  93. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -22
  94. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -288
  95. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
  96. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -26
  97. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -144
  98. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
  99. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -67
  100. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -96
  101. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
  102. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -48
  103. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -362
  105. package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +0 -20
  116. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +0 -20
  117. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +0 -22
  119. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +0 -279
  120. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +0 -26
  122. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +0 -112
  123. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +0 -67
  125. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +0 -81
  126. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +0 -45
  128. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +0 -1
  129. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +0 -330
  130. package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/ecom-v1-shippo-configuration-shippo-configurations.public.ts","../../src/ecom-v1-shippo-configuration-shippo-configurations.universal.ts","../../src/ecom-v1-shippo-configuration-shippo-configurations.http.ts","../../src/ecom-v1-shippo-configuration-shippo-configurations.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateShippoConfigurationOptions,\n ShippoConfiguration,\n ShippoConfigurationCreatedEnvelope,\n ShippoConfigurationDeletedEnvelope,\n ShippoConfigurationUpdatedEnvelope,\n ShippoConfigurationsQueryBuilder,\n UpdateExtendedFieldsOptions,\n UpdateExtendedFieldsResponse,\n UpdateShippoConfiguration,\n createShippoConfiguration as universalCreateShippoConfiguration,\n deleteShippoConfiguration as universalDeleteShippoConfiguration,\n getShippoConfiguration as universalGetShippoConfiguration,\n queryShippoConfigurations as universalQueryShippoConfigurations,\n updateExtendedFields as universalUpdateExtendedFields,\n updateShippoConfiguration as universalUpdateShippoConfiguration,\n} from './ecom-v1-shippo-configuration-shippo-configurations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createShippoConfiguration(\n httpClient: HttpClient\n): CreateShippoConfigurationSignature {\n return (\n shippoConfiguration: NonNullablePaths<\n ShippoConfiguration,\n | `deliveryRegionId`\n | `osLocationId`\n | `packageDetails`\n | `packageDetails.dimensions.height`\n | `packageDetails.dimensions.length`\n | `packageDetails.dimensions.width`\n | `packageType`\n >,\n options?: CreateShippoConfigurationOptions\n ) =>\n universalCreateShippoConfiguration(\n shippoConfiguration,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateShippoConfigurationSignature {\n /**\n * Creates a ShippoConfiguration.\n * @param - ShippoConfiguration to be created.\n * @returns The created ShippoConfiguration.\n */\n (\n shippoConfiguration: ShippoConfiguration,\n options?: CreateShippoConfigurationOptions | undefined\n ): Promise<ShippoConfiguration>;\n}\n\nexport function getShippoConfiguration(\n httpClient: HttpClient\n): GetShippoConfigurationSignature {\n return (shippoConfigurationId: string) =>\n universalGetShippoConfiguration(\n shippoConfigurationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetShippoConfigurationSignature {\n /**\n * Retrieves a ShippoConfiguration.\n * @param - ID of the ShippoConfiguration to retrieve.\n * @returns The requested ShippoConfiguration.\n */\n (shippoConfigurationId: string): Promise<ShippoConfiguration>;\n}\n\nexport function updateShippoConfiguration(\n httpClient: HttpClient\n): UpdateShippoConfigurationSignature {\n return (\n _id: string,\n shippoConfiguration: NonNullablePaths<UpdateShippoConfiguration, `revision`>\n ) =>\n universalUpdateShippoConfiguration(\n _id,\n shippoConfiguration,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateShippoConfigurationSignature {\n /**\n * Updates a ShippoConfiguration.\n * @param - ShippoConfiguration ID.\n * @returns Updated ShippoConfiguration.\n */\n (\n _id: string,\n shippoConfiguration: UpdateShippoConfiguration\n ): Promise<ShippoConfiguration>;\n}\n\nexport function deleteShippoConfiguration(\n httpClient: HttpClient\n): DeleteShippoConfigurationSignature {\n return (shippoConfigurationId: string) =>\n universalDeleteShippoConfiguration(\n shippoConfigurationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteShippoConfigurationSignature {\n /**\n * Deletes a ShippoConfiguration.\n * @param - ID of the ShippoConfiguration to delete.\n */\n (shippoConfigurationId: string): Promise<void>;\n}\n\nexport function queryShippoConfigurations(\n httpClient: HttpClient\n): QueryShippoConfigurationsSignature {\n return () =>\n universalQueryShippoConfigurations(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryShippoConfigurationsSignature {\n /**\n * Retrieves a list of ShippoConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 ShippoConfigurations can be returned per request.\n *\n * To learn how to query ShippoConfigurations, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\n (): ShippoConfigurationsQueryBuilder;\n}\n\nexport function updateExtendedFields(\n httpClient: HttpClient\n): UpdateExtendedFieldsSignature {\n return (\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n ) =>\n universalUpdateExtendedFields(\n _id,\n namespace,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateExtendedFieldsSignature {\n /**\n * Updates extended fields of a ShippoConfiguration without incrementing revision\n * @param - ID of the entity to update.\n * @param - Identifier for the app whose extended fields are being updated.\n */\n (\n _id: string,\n namespace: string,\n options: UpdateExtendedFieldsOptions\n ): Promise<UpdateExtendedFieldsResponse>;\n}\n\nexport const onShippoConfigurationCreated = EventDefinition(\n 'wix.ecom.v1.shippo_configuration_created',\n true,\n (event: ShippoConfigurationCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'entity.shipFromAddress' }],\n },\n ])\n )\n)<ShippoConfigurationCreatedEnvelope>();\nexport const onShippoConfigurationDeleted = EventDefinition(\n 'wix.ecom.v1.shippo_configuration_deleted',\n true,\n (event: ShippoConfigurationDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'entity.shipFromAddress' }],\n },\n ])\n )\n)<ShippoConfigurationDeletedEnvelope>();\nexport const onShippoConfigurationUpdated = EventDefinition(\n 'wix.ecom.v1.shippo_configuration_updated',\n true,\n (event: ShippoConfigurationUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'entity.shipFromAddress' }],\n },\n ])\n )\n)<ShippoConfigurationUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n Address,\n AddressLocation,\n BaseEventMetadata,\n CalculationType,\n CreateShippoConfigurationOptions,\n CreateShippoConfigurationRequest,\n CreateShippoConfigurationResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteShippoConfigurationRequest,\n DeleteShippoConfigurationResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n DomesticService,\n DomesticServiceSettings,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GetShippoConfigurationRequest,\n GetShippoConfigurationResponse,\n HandlingFee,\n IdentificationData,\n IdentificationDataIdOneOf,\n InternationalService,\n InternationalServiceSettings,\n MessageEnvelope,\n PackageDetails,\n PackageDimensions,\n PackageType,\n QueryShippoConfigurationsRequest,\n QueryShippoConfigurationsResponse,\n RestoreInfo,\n ServiceSettings,\n ShippoConfiguration,\n ShippoConfigurationCreatedEnvelope,\n ShippoConfigurationDeletedEnvelope,\n ShippoConfigurationUpdatedEnvelope,\n ShippoConfigurationsQueryBuilder,\n ShippoConfigurationsQueryResult,\n SortOrder,\n Sorting,\n StreetAddress,\n UpdateExtendedFieldsOptions,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n UpdateShippoConfiguration,\n UpdateShippoConfigurationRequest,\n UpdateShippoConfigurationResponse,\n WebhookIdentityType,\n} from './ecom-v1-shippo-configuration-shippo-configurations.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1ShippoConfiguration from './ecom-v1-shippo-configuration-shippo-configurations.http.js';\n// @ts-ignore\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface ShippoConfiguration {\n /**\n * ShippoConfiguration ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** @readonly */\n revision?: string | null;\n /**\n * Date and time the ShippoConfiguration was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the ShippoConfiguration was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Associated delivery region ID.\n * @format GUID\n * @immutable\n * @deprecated Associated delivery region ID.\n * @replacedBy delivery_region_ids\n * @targetRemovalDate 2025-06-01\n */\n deliveryRegionId?: string | null;\n /**\n * Settings of USPS domestic services.\n * @maxSize 3\n */\n domesticServices?: DomesticServiceSettings[];\n /**\n * Settings of USPS international services.\n * @maxSize 3\n */\n internationalServices?: InternationalServiceSettings[];\n /** Package type. */\n packageType?: PackageType;\n /** Package details. */\n packageDetails?: PackageDetails;\n /**\n * Location ID from OS location service.\n * @format GUID\n */\n osLocationId?: string | null;\n /**\n * Ship from address materialized from OS location.\n * @readonly\n */\n shipFromAddress?: Address;\n /**\n * This shippo configuration is active for the following delivery regions.\n * @maxSize 5\n * @format GUID\n * @immutable\n */\n deliveryRegionIds?: string[];\n /**\n * Backup weight.\n * @decimalValue options { gte:0, maxScale:5 }\n */\n backupWeight?: string | null;\n /** Data extensions. */\n extendedFields?: ExtendedFields;\n}\n\nexport interface DomesticServiceSettings {\n /**\n * DomesticServiceSettings ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** USPS domestic service. */\n service?: DomesticService;\n /** Service settings. */\n serviceSettings?: ServiceSettings;\n}\n\nexport enum DomesticService {\n UNKNOWN_DOMESTIC_SERVICE = 'UNKNOWN_DOMESTIC_SERVICE',\n GROUND_ADVANTAGE = 'GROUND_ADVANTAGE',\n PRIORITY_MAIL = 'PRIORITY_MAIL',\n PRIORITY_MAIL_EXPRESS = 'PRIORITY_MAIL_EXPRESS',\n}\n\nexport interface ServiceSettings {\n /**\n * Estimated delivery time.\n * @maxLength 500\n */\n estimatedDeliveryTime?: string | null;\n /** Handling fee. */\n handlingFee?: HandlingFee;\n /**\n * Amount above which free delivery is offered.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n freeDeliveryMinimumAmount?: string | null;\n}\n\nexport interface HandlingFee {\n /**\n * Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.\n * @decimalValue options { gte:0, maxScale:4 }\n */\n value?: string;\n /** How to calculate the fee: fixed amount or by percentage. */\n calculationType?: CalculationType;\n}\n\nexport enum CalculationType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n FIXED = 'FIXED',\n PERCENTAGE = 'PERCENTAGE',\n}\n\nexport interface InternationalServiceSettings {\n /**\n * InternationalServiceSettings ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** USPS international service. */\n service?: InternationalService;\n /** Service settings. */\n serviceSettings?: ServiceSettings;\n}\n\nexport enum InternationalService {\n UNKNOWN_INTERNATIONAL_SERVICE = 'UNKNOWN_INTERNATIONAL_SERVICE',\n FIRST_CLASS_PACKAGE_INTERNATIONAL = 'FIRST_CLASS_PACKAGE_INTERNATIONAL',\n PRIORITY_MAIL_INTERNATIONAL = 'PRIORITY_MAIL_INTERNATIONAL',\n PRIORITY_MAIL_EXPRESS_INTERNATIONAL = 'PRIORITY_MAIL_EXPRESS_INTERNATIONAL',\n}\n\nexport enum PackageType {\n UNKNOWN_PACKAGE_TYPE = 'UNKNOWN_PACKAGE_TYPE',\n CUSTOM = 'CUSTOM',\n FLAT_RATE_ENVELOPE = 'FLAT_RATE_ENVELOPE',\n PADDED_FLAT_RATE_ENVELOPE = 'PADDED_FLAT_RATE_ENVELOPE',\n SMALL_FLAT_RATE_BOX = 'SMALL_FLAT_RATE_BOX',\n MEDIUM_FLAT_RATE_BOX_1 = 'MEDIUM_FLAT_RATE_BOX_1',\n MEDIUM_FLAT_RATE_BOX_2 = 'MEDIUM_FLAT_RATE_BOX_2',\n LARGE_FLAT_RATE_BOX = 'LARGE_FLAT_RATE_BOX',\n}\n\nexport interface PackageDetails {\n /**\n * Package name. Must be set when package type is CUSTOM.\n * For other package types, it is read-only, and an exception will be thrown\n * if it set when creating a ShippoConfiguration.\n * @maxLength 255\n */\n name?: string | null;\n /**\n * Package dimensions. Can only be set when package type is CUSTOM.\n * For other package types, it is read-only, and an exception will be thrown\n * if it set when creating a ShippoConfiguration.\n */\n dimensions?: PackageDimensions;\n /**\n * Maximum number of products. Must be set when package type is NOT CUSTOM.\n * Otherwise, if the package type is CUSTOM, this field cannot be set and an\n * exception will be thrown if it is set when creating a ShippoConfiguration.\n */\n maxNumberOfProducts?: string | null;\n}\n\nexport interface PackageDimensions {\n /**\n * Package length.\n * @decimalValue options { gte:0, maxScale:3 }\n */\n length?: string;\n /**\n * Package width.\n * @decimalValue options { gte:0, maxScale:3 }\n */\n width?: string;\n /**\n * Package height.\n * @decimalValue options { gte:0, maxScale:3 }\n */\n height?: string;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 50\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 50\n */\n postalCode?: string | null;\n /** Street address. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 150\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface CreateShippoConfigurationRequest {\n /** ShippoConfiguration to be created. */\n shippoConfiguration: ShippoConfiguration;\n /** @decimalValue options { gte:0, maxScale:6 } */\n backupRate?: string | null;\n}\n\nexport interface CreateShippoConfigurationResponse {\n /** The created ShippoConfiguration. */\n shippoConfiguration?: ShippoConfiguration;\n}\n\nexport interface GetShippoConfigurationRequest {\n /**\n * ID of the ShippoConfiguration to retrieve.\n * @format GUID\n */\n shippoConfigurationId: string;\n}\n\nexport interface GetShippoConfigurationResponse {\n /** The requested ShippoConfiguration. */\n shippoConfiguration?: ShippoConfiguration;\n}\n\nexport interface UpdateShippoConfigurationRequest {\n /** ShippoConfiguration to be updated, may be partial. */\n shippoConfiguration: ShippoConfiguration;\n}\n\nexport interface UpdateShippoConfigurationResponse {\n /** Updated ShippoConfiguration. */\n shippoConfiguration?: ShippoConfiguration;\n}\n\nexport interface DeleteShippoConfigurationRequest {\n /**\n * ID of the ShippoConfiguration to delete.\n * @format GUID\n */\n shippoConfigurationId: string;\n}\n\nexport interface DeleteShippoConfigurationResponse {}\n\nexport interface QueryShippoConfigurationsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\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 in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\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?: SortOrder;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\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 QueryShippoConfigurationsResponse {\n /** List of ShippoConfigurations. */\n shippoConfigurations?: ShippoConfiguration[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\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 UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated ShippoConfiguration. */\n shippoConfiguration?: ShippoConfiguration;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * 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 defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\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 entity?: string;\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 currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\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?: WebhookIdentityType;\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\nexport interface BaseEventMetadata {\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}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * 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 defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface ShippoConfigurationCreatedEnvelope {\n entity: ShippoConfiguration;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.ecom.v1.shippo_configuration_created\n * @serviceIdentifier wix.ecom.delivery.v1.ShippoService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onShippoConfigurationCreated(\n handler: (event: ShippoConfigurationCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ShippoConfigurationDeletedEnvelope {\n entity: ShippoConfiguration;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.ecom.v1.shippo_configuration_deleted\n * @serviceIdentifier wix.ecom.delivery.v1.ShippoService\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onShippoConfigurationDeleted(\n handler: (event: ShippoConfigurationDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ShippoConfigurationUpdatedEnvelope {\n entity: ShippoConfiguration;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.ecom.v1.shippo_configuration_updated\n * @serviceIdentifier wix.ecom.delivery.v1.ShippoService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onShippoConfigurationUpdated(\n handler: (event: ShippoConfigurationUpdatedEnvelope) => void | Promise<void>\n): void;\n\ntype ShippoConfigurationNonNullablePaths =\n | `domesticServices`\n | `domesticServices.${number}.service`\n | `domesticServices.${number}.serviceSettings.handlingFee.value`\n | `domesticServices.${number}.serviceSettings.handlingFee.calculationType`\n | `internationalServices`\n | `internationalServices.${number}.service`\n | `internationalServices.${number}.serviceSettings.handlingFee.value`\n | `internationalServices.${number}.serviceSettings.handlingFee.calculationType`\n | `packageType`\n | `packageDetails.dimensions.length`\n | `packageDetails.dimensions.width`\n | `packageDetails.dimensions.height`\n | `shipFromAddress.streetAddress.number`\n | `shipFromAddress.streetAddress.name`\n | `deliveryRegionIds`;\n\n/**\n * Creates a ShippoConfiguration.\n * @param shippoConfiguration - ShippoConfiguration to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField shippoConfiguration\n * @requiredField shippoConfiguration.deliveryRegionId\n * @requiredField shippoConfiguration.osLocationId\n * @requiredField shippoConfiguration.packageDetails\n * @requiredField shippoConfiguration.packageDetails.dimensions.height\n * @requiredField shippoConfiguration.packageDetails.dimensions.length\n * @requiredField shippoConfiguration.packageDetails.dimensions.width\n * @requiredField shippoConfiguration.packageType\n * @permissionId ECOM.SHIPPO_CONFIGURATION_CREATE\n * @returns The created ShippoConfiguration.\n * @fqn wix.ecom.delivery.v1.ShippoService.CreateShippoConfiguration\n */\nexport async function createShippoConfiguration(\n shippoConfiguration: NonNullablePaths<\n ShippoConfiguration,\n | `deliveryRegionId`\n | `osLocationId`\n | `packageDetails`\n | `packageDetails.dimensions.height`\n | `packageDetails.dimensions.length`\n | `packageDetails.dimensions.width`\n | `packageType`\n >,\n options?: CreateShippoConfigurationOptions\n): Promise<\n NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n shippoConfiguration: shippoConfiguration,\n backupRate: options?.backupRate,\n }),\n [\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [{ path: 'shippoConfiguration.shipFromAddress' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixEcomV1ShippoConfiguration.createShippoConfiguration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'shippoConfiguration.shipFromAddress' }],\n },\n ])\n )?.shippoConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n shippoConfiguration: '$[0]',\n backupRate: '$[1].backupRate',\n },\n singleArgumentUnchanged: false,\n },\n ['shippoConfiguration', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateShippoConfigurationOptions {\n /** @decimalValue options { gte:0, maxScale:6 } */\n backupRate?: string | null;\n}\n\n/**\n * Retrieves a ShippoConfiguration.\n * @param shippoConfigurationId - ID of the ShippoConfiguration to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField shippoConfigurationId\n * @permissionId ECOM.SHIPPO_CONFIGURATION_READ\n * @returns The requested ShippoConfiguration.\n * @fqn wix.ecom.delivery.v1.ShippoService.GetShippoConfiguration\n */\nexport async function getShippoConfiguration(\n shippoConfigurationId: string\n): Promise<\n NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n shippoConfigurationId: shippoConfigurationId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1ShippoConfiguration.getShippoConfiguration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'shippoConfiguration.shipFromAddress' }],\n },\n ])\n )?.shippoConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { shippoConfigurationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['shippoConfigurationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a ShippoConfiguration.\n * @param _id - ShippoConfiguration ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField shippoConfiguration\n * @requiredField shippoConfiguration.revision\n * @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE\n * @returns Updated ShippoConfiguration.\n * @fqn wix.ecom.delivery.v1.ShippoService.UpdateShippoConfiguration\n */\nexport async function updateShippoConfiguration(\n _id: string,\n shippoConfiguration: NonNullablePaths<UpdateShippoConfiguration, `revision`>\n): Promise<\n NonNullablePaths<ShippoConfiguration, ShippoConfigurationNonNullablePaths>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n shippoConfiguration: { ...shippoConfiguration, id: _id },\n }),\n [\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [{ path: 'shippoConfiguration.shipFromAddress' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixEcomV1ShippoConfiguration.updateShippoConfiguration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'shippoConfiguration.shipFromAddress' }],\n },\n ])\n )?.shippoConfiguration!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { shippoConfiguration: '$[1]' },\n explicitPathsToArguments: { 'shippoConfiguration.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'shippoConfiguration']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateShippoConfiguration {\n /**\n * ShippoConfiguration ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** @readonly */\n revision?: string | null;\n /**\n * Date and time the ShippoConfiguration was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the ShippoConfiguration was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Associated delivery region ID.\n * @format GUID\n * @immutable\n * @deprecated Associated delivery region ID.\n * @replacedBy delivery_region_ids\n * @targetRemovalDate 2025-06-01\n */\n deliveryRegionId?: string | null;\n /**\n * Settings of USPS domestic services.\n * @maxSize 3\n */\n domesticServices?: DomesticServiceSettings[];\n /**\n * Settings of USPS international services.\n * @maxSize 3\n */\n internationalServices?: InternationalServiceSettings[];\n /** Package type. */\n packageType?: PackageType;\n /** Package details. */\n packageDetails?: PackageDetails;\n /**\n * Location ID from OS location service.\n * @format GUID\n */\n osLocationId?: string | null;\n /**\n * Ship from address materialized from OS location.\n * @readonly\n */\n shipFromAddress?: Address;\n /**\n * This shippo configuration is active for the following delivery regions.\n * @maxSize 5\n * @format GUID\n * @immutable\n */\n deliveryRegionIds?: string[];\n /**\n * Backup weight.\n * @decimalValue options { gte:0, maxScale:5 }\n */\n backupWeight?: string | null;\n /** Data extensions. */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * Deletes a ShippoConfiguration.\n * @param shippoConfigurationId - ID of the ShippoConfiguration to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField shippoConfigurationId\n * @permissionId ECOM.SHIPPO_CONFIGURATION_DELETE\n * @fqn wix.ecom.delivery.v1.ShippoService.DeleteShippoConfiguration\n */\nexport async function deleteShippoConfiguration(\n shippoConfigurationId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n shippoConfigurationId: shippoConfigurationId,\n });\n\n const reqOpts =\n ambassadorWixEcomV1ShippoConfiguration.deleteShippoConfiguration(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { shippoConfigurationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['shippoConfigurationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of ShippoConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 ShippoConfigurations can be returned per request.\n *\n * To learn how to query ShippoConfigurations, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.SHIPPO_CONFIGURATION_READ\n * @fqn wix.ecom.delivery.v1.ShippoService.QueryShippoConfigurations\n */\nexport function queryShippoConfigurations(): ShippoConfigurationsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ShippoConfiguration,\n 'CURSOR',\n QueryShippoConfigurationsRequest,\n QueryShippoConfigurationsResponse\n >({\n func: async (payload: QueryShippoConfigurationsRequest) => {\n const reqOpts =\n ambassadorWixEcomV1ShippoConfiguration.queryShippoConfigurations(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryShippoConfigurationsRequest['query']) => {\n const args = [query, {}] as [\n QueryShippoConfigurationsRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryShippoConfigurationsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'shippoConfigurations.shipFromAddress' }],\n },\n ])\n );\n\n return {\n items: transformedData?.shippoConfigurations,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ShippoConfigurationsQueryResult extends QueryCursorResult {\n items: ShippoConfiguration[];\n query: ShippoConfigurationsQueryBuilder;\n next: () => Promise<ShippoConfigurationsQueryResult>;\n prev: () => Promise<ShippoConfigurationsQueryResult>;\n}\n\nexport interface ShippoConfigurationsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName: '_id' | 'deliveryRegionId',\n value: any\n ) => ShippoConfigurationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName: '_id' | 'deliveryRegionId',\n value: any\n ) => ShippoConfigurationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id' | 'deliveryRegionId',\n value: string\n ) => ShippoConfigurationsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName: '_id' | 'deliveryRegionId',\n value: any[]\n ) => ShippoConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'deliveryRegionId',\n value: any\n ) => ShippoConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'deliveryRegionId',\n value: boolean\n ) => ShippoConfigurationsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'_id' | 'deliveryRegionId'>\n ) => ShippoConfigurationsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'_id' | 'deliveryRegionId'>\n ) => ShippoConfigurationsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => ShippoConfigurationsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ShippoConfigurationsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ShippoConfigurationsQueryResult>;\n}\n\n/**\n * Updates extended fields of a ShippoConfiguration without incrementing revision\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId ECOM.SHIPPO_CONFIGURATION_UPDATE\n * @fqn wix.ecom.delivery.v1.ShippoService.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n): Promise<\n NonNullablePaths<\n UpdateExtendedFieldsResponse,\n {\n [P in ShippoConfigurationNonNullablePaths]: `shippoConfiguration.${P}`;\n }[ShippoConfigurationNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixEcomV1ShippoConfiguration.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'shippoConfiguration.shipFromAddress' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixEcomDeliveryV1ShippoServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/shippo-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/shippo-configurations',\n destPath: '/v1/shippo-configurations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_shippo-configurations';\n\n/** Creates a ShippoConfiguration. */\nexport function createShippoConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __createShippoConfiguration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'shippoConfiguration.createdDate' },\n { path: 'shippoConfiguration.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'shippoConfiguration.shipFromAddress.geocode.latitude' },\n { path: 'shippoConfiguration.shipFromAddress.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.shippo_configuration',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.delivery.v1.ShippoService.CreateShippoConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'shippoConfiguration.createdDate' },\n { path: 'shippoConfiguration.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'shippoConfiguration.shipFromAddress.geocode.latitude' },\n { path: 'shippoConfiguration.shipFromAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createShippoConfiguration;\n}\n\n/** Retrieves a ShippoConfiguration. */\nexport function getShippoConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __getShippoConfiguration({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.shippo_configuration',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.delivery.v1.ShippoService.GetShippoConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations/{shippoConfigurationId}',\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: 'shippoConfiguration.createdDate' },\n { path: 'shippoConfiguration.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'shippoConfiguration.shipFromAddress.geocode.latitude' },\n { path: 'shippoConfiguration.shipFromAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getShippoConfiguration;\n}\n\n/** Updates a ShippoConfiguration. */\nexport function updateShippoConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateShippoConfiguration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'shippoConfiguration.createdDate' },\n { path: 'shippoConfiguration.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'shippoConfiguration.shipFromAddress.geocode.latitude' },\n { path: 'shippoConfiguration.shipFromAddress.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.shippo_configuration',\n method: 'PATCH' as any,\n methodFqn: 'wix.ecom.delivery.v1.ShippoService.UpdateShippoConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations/{shippoConfiguration.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: 'shippoConfiguration.createdDate' },\n { path: 'shippoConfiguration.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'shippoConfiguration.shipFromAddress.geocode.latitude' },\n { path: 'shippoConfiguration.shipFromAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateShippoConfiguration;\n}\n\n/** Deletes a ShippoConfiguration. */\nexport function deleteShippoConfiguration(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteShippoConfiguration({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.shippo_configuration',\n method: 'DELETE' as any,\n methodFqn: 'wix.ecom.delivery.v1.ShippoService.DeleteShippoConfiguration',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations/{shippoConfigurationId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteShippoConfiguration;\n}\n\n/**\n * Retrieves a list of ShippoConfigurations, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 ShippoConfigurations can be returned per request.\n *\n * To learn how to query ShippoConfigurations, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryShippoConfigurations(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryShippoConfigurations({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.shippo_configuration',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.delivery.v1.ShippoService.QueryShippoConfigurations',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations/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: 'shippoConfigurations.createdDate' },\n { path: 'shippoConfigurations.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'shippoConfigurations.shipFromAddress.geocode.latitude' },\n {\n path: 'shippoConfigurations.shipFromAddress.geocode.longitude',\n },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryShippoConfigurations;\n}\n\n/** Updates extended fields of a ShippoConfiguration without incrementing revision */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.shippo_configuration',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.delivery.v1.ShippoService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomDeliveryV1ShippoServiceUrl({\n protoPath: '/v1/shippo-configurations/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'shippoConfiguration.createdDate' },\n { path: 'shippoConfiguration.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'shippoConfiguration.shipFromAddress.geocode.latitude' },\n { path: 'shippoConfiguration.shipFromAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n","import {\n createShippoConfiguration as publicCreateShippoConfiguration,\n getShippoConfiguration as publicGetShippoConfiguration,\n updateShippoConfiguration as publicUpdateShippoConfiguration,\n deleteShippoConfiguration as publicDeleteShippoConfiguration,\n queryShippoConfigurations as publicQueryShippoConfigurations,\n updateExtendedFields as publicUpdateExtendedFields,\n} from './ecom-v1-shippo-configuration-shippo-configurations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { onShippoConfigurationCreated as publicOnShippoConfigurationCreated } from './ecom-v1-shippo-configuration-shippo-configurations.public.js';\nimport { onShippoConfigurationDeleted as publicOnShippoConfigurationDeleted } from './ecom-v1-shippo-configuration-shippo-configurations.public.js';\nimport { onShippoConfigurationUpdated as publicOnShippoConfigurationUpdated } from './ecom-v1-shippo-configuration-shippo-configurations.public.js';\n\nexport const createShippoConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicCreateShippoConfiguration> &\n typeof publicCreateShippoConfiguration\n> = /*#__PURE__*/ createRESTModule(publicCreateShippoConfiguration);\nexport const getShippoConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicGetShippoConfiguration> &\n typeof publicGetShippoConfiguration\n> = /*#__PURE__*/ createRESTModule(publicGetShippoConfiguration);\nexport const updateShippoConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicUpdateShippoConfiguration> &\n typeof publicUpdateShippoConfiguration\n> = /*#__PURE__*/ createRESTModule(publicUpdateShippoConfiguration);\nexport const deleteShippoConfiguration: MaybeContext<\n BuildRESTFunction<typeof publicDeleteShippoConfiguration> &\n typeof publicDeleteShippoConfiguration\n> = /*#__PURE__*/ createRESTModule(publicDeleteShippoConfiguration);\nexport const queryShippoConfigurations: MaybeContext<\n BuildRESTFunction<typeof publicQueryShippoConfigurations> &\n typeof publicQueryShippoConfigurations\n> = /*#__PURE__*/ createRESTModule(publicQueryShippoConfigurations);\nexport const updateExtendedFields: MaybeContext<\n BuildRESTFunction<typeof publicUpdateExtendedFields> &\n typeof publicUpdateExtendedFields\n> = /*#__PURE__*/ createRESTModule(publicUpdateExtendedFields);\n/** */\nexport const onShippoConfigurationCreated: ReturnType<\n typeof createEventModule<typeof publicOnShippoConfigurationCreated>\n> = createEventModule(publicOnShippoConfigurationCreated);\n/** */\nexport const onShippoConfigurationDeleted: ReturnType<\n typeof createEventModule<typeof publicOnShippoConfigurationDeleted>\n> = createEventModule(publicOnShippoConfigurationDeleted);\n/** */\nexport const onShippoConfigurationUpdated: ReturnType<\n typeof createEventModule<typeof publicOnShippoConfigurationUpdated>\n> = createEventModule(publicOnShippoConfigurationUpdated);\n\nexport {\n DomesticService,\n CalculationType,\n InternationalService,\n PackageType,\n SortOrder,\n WebhookIdentityType,\n} from './ecom-v1-shippo-configuration-shippo-configurations.universal.js';\nexport {\n ShippoConfiguration,\n DomesticServiceSettings,\n ServiceSettings,\n HandlingFee,\n InternationalServiceSettings,\n PackageDetails,\n PackageDimensions,\n Address,\n StreetAddress,\n AddressLocation,\n ExtendedFields,\n CreateShippoConfigurationRequest,\n CreateShippoConfigurationResponse,\n GetShippoConfigurationRequest,\n GetShippoConfigurationResponse,\n UpdateShippoConfigurationRequest,\n UpdateShippoConfigurationResponse,\n DeleteShippoConfigurationRequest,\n DeleteShippoConfigurationResponse,\n QueryShippoConfigurationsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryShippoConfigurationsResponse,\n CursorPagingMetadata,\n Cursors,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n ShippoConfigurationCreatedEnvelope,\n ShippoConfigurationDeletedEnvelope,\n ShippoConfigurationUpdatedEnvelope,\n CreateShippoConfigurationOptions,\n UpdateShippoConfiguration,\n ShippoConfigurationsQueryResult,\n ShippoConfigurationsQueryBuilder,\n UpdateExtendedFieldsOptions,\n} from './ecom-v1-shippo-configuration-shippo-configurations.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,oCAAAC,yCAAwC;AACjD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACJ9D,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,o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MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAAA,MAC5C;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAsC;AAC/B,IAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA,CAAC,UACCH;AAAA,IACEC,gBAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAAA,MAC5C;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAsC;;;AG3OtC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAM3B,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,0BAGK,iCAAiBA,uBAA4B;AACxD,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,wBAGK,iCAAiBA,qBAA0B;AAEtD,IAAMC,gCAET,kBAAkB,4BAAkC;AAEjD,IAAMC,gCAET,kBAAkB,4BAAkC;AAEjD,IAAMC,gCAET,kBAAkB,4BAAkC;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTAddressToSDKAddress","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","DomesticService","CalculationType","InternationalService","PackageType","SortOrder","WebhookIdentityType","createShippoConfiguration","getShippoConfiguration","updateShippoConfiguration","deleteShippoConfiguration","queryShippoConfigurations","updateExtendedFields","createShippoConfiguration","getShippoConfiguration","updateShippoConfiguration","deleteShippoConfiguration","queryShippoConfigurations","updateExtendedFields","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTAddressToSDKAddress","createShippoConfiguration","getShippoConfiguration","updateShippoConfiguration","deleteShippoConfiguration","queryShippoConfigurations","updateExtendedFields","onShippoConfigurationCreated","onShippoConfigurationDeleted","onShippoConfigurationUpdated"]}
@@ -1,4 +1,6 @@
1
- export interface ShippoConfiguration {
1
+ import { m as CreateShippoConfigurationRequest$1, n as CreateShippoConfigurationResponse$1, G as GetShippoConfigurationRequest$1, o as GetShippoConfigurationResponse$1, p as UpdateShippoConfigurationRequest$1, q as UpdateShippoConfigurationResponse$1, r as DeleteShippoConfigurationRequest$1, s as DeleteShippoConfigurationResponse$1, Q as QueryShippoConfigurationsRequest$1, x as QueryShippoConfigurationsResponse$1, B as UpdateExtendedFieldsRequest$1, c as UpdateExtendedFieldsResponse$1 } from './ecom-v1-shippo-configuration-shippo-configurations.universal-DG33s-Yd.mjs';
2
+
3
+ interface ShippoConfiguration {
2
4
  /**
3
5
  * ShippoConfiguration ID.
4
6
  * @format GUID
@@ -65,7 +67,7 @@ export interface ShippoConfiguration {
65
67
  /** Data extensions. */
66
68
  extendedFields?: ExtendedFields;
67
69
  }
68
- export interface DomesticServiceSettings {
70
+ interface DomesticServiceSettings {
69
71
  /**
70
72
  * DomesticServiceSettings ID.
71
73
  * @format GUID
@@ -77,13 +79,13 @@ export interface DomesticServiceSettings {
77
79
  /** Service settings. */
78
80
  serviceSettings?: ServiceSettings;
79
81
  }
80
- export declare enum DomesticService {
82
+ declare enum DomesticService {
81
83
  UNKNOWN_DOMESTIC_SERVICE = "UNKNOWN_DOMESTIC_SERVICE",
82
84
  GROUND_ADVANTAGE = "GROUND_ADVANTAGE",
83
85
  PRIORITY_MAIL = "PRIORITY_MAIL",
84
86
  PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
85
87
  }
86
- export interface ServiceSettings {
88
+ interface ServiceSettings {
87
89
  /**
88
90
  * Estimated delivery time.
89
91
  * @maxLength 500
@@ -97,7 +99,7 @@ export interface ServiceSettings {
97
99
  */
98
100
  freeDeliveryMinimumAmount?: string | null;
99
101
  }
100
- export interface HandlingFee {
102
+ interface HandlingFee {
101
103
  /**
102
104
  * Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
103
105
  * @decimalValue options { gte:0, maxScale:4 }
@@ -106,12 +108,12 @@ export interface HandlingFee {
106
108
  /** How to calculate the fee: fixed amount or by percentage. */
107
109
  calculationType?: CalculationType;
108
110
  }
109
- export declare enum CalculationType {
111
+ declare enum CalculationType {
110
112
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
111
113
  FIXED = "FIXED",
112
114
  PERCENTAGE = "PERCENTAGE"
113
115
  }
114
- export interface InternationalServiceSettings {
116
+ interface InternationalServiceSettings {
115
117
  /**
116
118
  * InternationalServiceSettings ID.
117
119
  * @format GUID
@@ -123,13 +125,13 @@ export interface InternationalServiceSettings {
123
125
  /** Service settings. */
124
126
  serviceSettings?: ServiceSettings;
125
127
  }
126
- export declare enum InternationalService {
128
+ declare enum InternationalService {
127
129
  UNKNOWN_INTERNATIONAL_SERVICE = "UNKNOWN_INTERNATIONAL_SERVICE",
128
130
  FIRST_CLASS_PACKAGE_INTERNATIONAL = "FIRST_CLASS_PACKAGE_INTERNATIONAL",
129
131
  PRIORITY_MAIL_INTERNATIONAL = "PRIORITY_MAIL_INTERNATIONAL",
130
132
  PRIORITY_MAIL_EXPRESS_INTERNATIONAL = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL"
131
133
  }
132
- export declare enum PackageType {
134
+ declare enum PackageType {
133
135
  UNKNOWN_PACKAGE_TYPE = "UNKNOWN_PACKAGE_TYPE",
134
136
  CUSTOM = "CUSTOM",
135
137
  FLAT_RATE_ENVELOPE = "FLAT_RATE_ENVELOPE",
@@ -139,7 +141,7 @@ export declare enum PackageType {
139
141
  MEDIUM_FLAT_RATE_BOX_2 = "MEDIUM_FLAT_RATE_BOX_2",
140
142
  LARGE_FLAT_RATE_BOX = "LARGE_FLAT_RATE_BOX"
141
143
  }
142
- export interface PackageDetails {
144
+ interface PackageDetails {
143
145
  /**
144
146
  * Package name. Must be set when package type is CUSTOM.
145
147
  * For other package types, it is read-only, and an exception will be thrown
@@ -160,7 +162,7 @@ export interface PackageDetails {
160
162
  */
161
163
  maxNumberOfProducts?: string | null;
162
164
  }
163
- export interface PackageDimensions {
165
+ interface PackageDimensions {
164
166
  /**
165
167
  * Package length.
166
168
  * @decimalValue options { gte:0, maxScale:3 }
@@ -178,7 +180,7 @@ export interface PackageDimensions {
178
180
  height?: string;
179
181
  }
180
182
  /** Physical address */
181
- export interface Address {
183
+ interface Address {
182
184
  /**
183
185
  * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
184
186
  * @format COUNTRY
@@ -222,19 +224,13 @@ export interface Address {
222
224
  */
223
225
  subdivisionFullname?: string | null;
224
226
  }
225
- export interface StreetAddress {
227
+ interface StreetAddress {
226
228
  /** Street number. */
227
229
  number?: string;
228
230
  /** Street name. */
229
231
  name?: string;
230
232
  }
231
- export interface AddressLocation {
232
- /** Address latitude. */
233
- latitude?: number | null;
234
- /** Address longitude. */
235
- longitude?: number | null;
236
- }
237
- export interface ExtendedFields {
233
+ interface ExtendedFields {
238
234
  /**
239
235
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
240
236
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -245,49 +241,49 @@ export interface ExtendedFields {
245
241
  */
246
242
  namespaces?: Record<string, Record<string, any>>;
247
243
  }
248
- export interface CreateShippoConfigurationRequest {
244
+ interface CreateShippoConfigurationRequest {
249
245
  /** ShippoConfiguration to be created. */
250
246
  shippoConfiguration: ShippoConfiguration;
251
247
  /** @decimalValue options { gte:0, maxScale:6 } */
252
248
  backupRate?: string | null;
253
249
  }
254
- export interface CreateShippoConfigurationResponse {
250
+ interface CreateShippoConfigurationResponse {
255
251
  /** The created ShippoConfiguration. */
256
252
  shippoConfiguration?: ShippoConfiguration;
257
253
  }
258
- export interface GetShippoConfigurationRequest {
254
+ interface GetShippoConfigurationRequest {
259
255
  /**
260
256
  * ID of the ShippoConfiguration to retrieve.
261
257
  * @format GUID
262
258
  */
263
259
  shippoConfigurationId: string;
264
260
  }
265
- export interface GetShippoConfigurationResponse {
261
+ interface GetShippoConfigurationResponse {
266
262
  /** The requested ShippoConfiguration. */
267
263
  shippoConfiguration?: ShippoConfiguration;
268
264
  }
269
- export interface UpdateShippoConfigurationRequest {
265
+ interface UpdateShippoConfigurationRequest {
270
266
  /** ShippoConfiguration to be updated, may be partial. */
271
267
  shippoConfiguration: ShippoConfiguration;
272
268
  }
273
- export interface UpdateShippoConfigurationResponse {
269
+ interface UpdateShippoConfigurationResponse {
274
270
  /** Updated ShippoConfiguration. */
275
271
  shippoConfiguration?: ShippoConfiguration;
276
272
  }
277
- export interface DeleteShippoConfigurationRequest {
273
+ interface DeleteShippoConfigurationRequest {
278
274
  /**
279
275
  * ID of the ShippoConfiguration to delete.
280
276
  * @format GUID
281
277
  */
282
278
  shippoConfigurationId: string;
283
279
  }
284
- export interface DeleteShippoConfigurationResponse {
280
+ interface DeleteShippoConfigurationResponse {
285
281
  }
286
- export interface QueryShippoConfigurationsRequest {
282
+ interface QueryShippoConfigurationsRequest {
287
283
  /** WQL expression. */
288
284
  query?: CursorQuery;
289
285
  }
290
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
286
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
291
287
  /** 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`. */
292
288
  cursorPaging?: CursorPaging;
293
289
  /**
@@ -307,11 +303,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
307
303
  sort?: Sorting[];
308
304
  }
309
305
  /** @oneof */
310
- export interface CursorQueryPagingMethodOneOf {
306
+ interface CursorQueryPagingMethodOneOf {
311
307
  /** 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`. */
312
308
  cursorPaging?: CursorPaging;
313
309
  }
314
- export interface Sorting {
310
+ interface Sorting {
315
311
  /**
316
312
  * Name of the field to sort by.
317
313
  * @maxLength 512
@@ -320,11 +316,11 @@ export interface Sorting {
320
316
  /** Sort order. */
321
317
  order?: SortOrder;
322
318
  }
323
- export declare enum SortOrder {
319
+ declare enum SortOrder {
324
320
  ASC = "ASC",
325
321
  DESC = "DESC"
326
322
  }
327
- export interface CursorPaging {
323
+ interface CursorPaging {
328
324
  /**
329
325
  * Maximum number of items to return in the results.
330
326
  * @max 100
@@ -339,13 +335,13 @@ export interface CursorPaging {
339
335
  */
340
336
  cursor?: string | null;
341
337
  }
342
- export interface QueryShippoConfigurationsResponse {
338
+ interface QueryShippoConfigurationsResponse {
343
339
  /** List of ShippoConfigurations. */
344
340
  shippoConfigurations?: ShippoConfiguration[];
345
341
  /** Paging metadata. */
346
342
  pagingMetadata?: CursorPagingMetadata;
347
343
  }
348
- export interface CursorPagingMetadata {
344
+ interface CursorPagingMetadata {
349
345
  /** Number of items returned in the response. */
350
346
  count?: number | null;
351
347
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -358,7 +354,7 @@ export interface CursorPagingMetadata {
358
354
  */
359
355
  hasNext?: boolean | null;
360
356
  }
361
- export interface Cursors {
357
+ interface Cursors {
362
358
  /**
363
359
  * Cursor string pointing to the next page in the list of results.
364
360
  * @maxLength 16000
@@ -370,7 +366,7 @@ export interface Cursors {
370
366
  */
371
367
  prev?: string | null;
372
368
  }
373
- export interface UpdateExtendedFieldsRequest {
369
+ interface UpdateExtendedFieldsRequest {
374
370
  /** ID of the entity to update. */
375
371
  id: string;
376
372
  /** Identifier for the app whose extended fields are being updated. */
@@ -378,151 +374,34 @@ export interface UpdateExtendedFieldsRequest {
378
374
  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
379
375
  namespaceData: Record<string, any> | null;
380
376
  }
381
- export interface UpdateExtendedFieldsResponse {
377
+ interface UpdateExtendedFieldsResponse {
382
378
  /** Updated ShippoConfiguration. */
383
379
  shippoConfiguration?: ShippoConfiguration;
384
380
  }
385
- export interface DomainEvent extends DomainEventBodyOneOf {
386
- createdEvent?: EntityCreatedEvent;
387
- updatedEvent?: EntityUpdatedEvent;
388
- deletedEvent?: EntityDeletedEvent;
389
- actionEvent?: ActionEvent;
390
- /**
391
- * Unique event ID.
392
- * Allows clients to ignore duplicate webhooks.
393
- */
394
- id?: string;
395
- /**
396
- * Assumes actions are also always typed to an entity_type
397
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
398
- */
399
- entityFqdn?: string;
400
- /**
401
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
402
- * This is although the created/updated/deleted notion is duplication of the oneof types
403
- * Example: created/updated/deleted/started/completed/email_opened
404
- */
405
- slug?: string;
406
- /** ID of the entity associated with the event. */
407
- entityId?: string;
408
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
409
- eventTime?: Date | null;
410
- /**
411
- * Whether the event was triggered as a result of a privacy regulation application
412
- * (for example, GDPR).
413
- */
414
- triggeredByAnonymizeRequest?: boolean | null;
415
- /** If present, indicates the action that triggered the event. */
416
- originatedFrom?: string | null;
417
- /**
418
- * A sequence number defining the order of updates to the underlying entity.
419
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
420
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
421
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
422
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
423
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
424
- */
425
- entityEventSequence?: string | null;
426
- }
427
- /** @oneof */
428
- export interface DomainEventBodyOneOf {
429
- createdEvent?: EntityCreatedEvent;
430
- updatedEvent?: EntityUpdatedEvent;
431
- deletedEvent?: EntityDeletedEvent;
432
- actionEvent?: ActionEvent;
433
- }
434
- export interface EntityCreatedEvent {
435
- entityAsJson?: string;
436
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
437
- restoreInfo?: RestoreInfo;
438
- }
439
- export interface RestoreInfo {
440
- deletedDate?: Date | null;
441
- }
442
- export interface EntityUpdatedEvent {
443
- /**
444
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
445
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
446
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
447
- */
448
- currentEntityAsJson?: string;
449
- }
450
- export interface EntityDeletedEvent {
451
- /** Entity that was deleted */
452
- deletedEntityAsJson?: string | null;
453
- }
454
- export interface ActionEvent {
455
- bodyAsJson?: string;
456
- }
457
- export interface Empty {
458
- }
459
- export interface MessageEnvelope {
460
- /**
461
- * App instance ID.
462
- * @format GUID
463
- */
464
- instanceId?: string | null;
465
- /**
466
- * Event type.
467
- * @maxLength 150
468
- */
469
- eventType?: string;
470
- /** The identification type and identity data. */
471
- identity?: IdentificationData;
472
- /** Stringify payload. */
473
- data?: string;
474
- }
475
- export interface IdentificationData extends IdentificationDataIdOneOf {
476
- /**
477
- * ID of a site visitor that has not logged in to the site.
478
- * @format GUID
479
- */
480
- anonymousVisitorId?: string;
481
- /**
482
- * ID of a site visitor that has logged in to the site.
483
- * @format GUID
484
- */
485
- memberId?: string;
486
- /**
487
- * ID of a Wix user (site owner, contributor, etc.).
488
- * @format GUID
489
- */
490
- wixUserId?: string;
491
- /**
492
- * ID of an app.
493
- * @format GUID
494
- */
495
- appId?: string;
496
- /** @readonly */
497
- identityType?: WebhookIdentityType;
498
- }
499
- /** @oneof */
500
- export interface IdentificationDataIdOneOf {
501
- /**
502
- * ID of a site visitor that has not logged in to the site.
503
- * @format GUID
504
- */
505
- anonymousVisitorId?: string;
506
- /**
507
- * ID of a site visitor that has logged in to the site.
508
- * @format GUID
509
- */
510
- memberId?: string;
511
- /**
512
- * ID of a Wix user (site owner, contributor, etc.).
513
- * @format GUID
514
- */
515
- wixUserId?: string;
516
- /**
517
- * ID of an app.
518
- * @format GUID
519
- */
520
- appId?: string;
521
- }
522
- export declare enum WebhookIdentityType {
523
- UNKNOWN = "UNKNOWN",
524
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
525
- MEMBER = "MEMBER",
526
- WIX_USER = "WIX_USER",
527
- APP = "APP"
528
- }
381
+
382
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
383
+ getUrl: (context: any) => string;
384
+ httpMethod: K;
385
+ path: string;
386
+ pathParams: M;
387
+ __requestType: T;
388
+ __originalRequestType: S;
389
+ __responseType: Q;
390
+ __originalResponseType: R;
391
+ };
392
+ declare function createShippoConfiguration(): __PublicMethodMetaInfo<'POST', {}, CreateShippoConfigurationRequest$1, CreateShippoConfigurationRequest, CreateShippoConfigurationResponse$1, CreateShippoConfigurationResponse>;
393
+ declare function getShippoConfiguration(): __PublicMethodMetaInfo<'GET', {
394
+ shippoConfigurationId: string;
395
+ }, GetShippoConfigurationRequest$1, GetShippoConfigurationRequest, GetShippoConfigurationResponse$1, GetShippoConfigurationResponse>;
396
+ declare function updateShippoConfiguration(): __PublicMethodMetaInfo<'PATCH', {
397
+ shippoConfigurationId: string;
398
+ }, UpdateShippoConfigurationRequest$1, UpdateShippoConfigurationRequest, UpdateShippoConfigurationResponse$1, UpdateShippoConfigurationResponse>;
399
+ declare function deleteShippoConfiguration(): __PublicMethodMetaInfo<'DELETE', {
400
+ shippoConfigurationId: string;
401
+ }, DeleteShippoConfigurationRequest$1, DeleteShippoConfigurationRequest, DeleteShippoConfigurationResponse$1, DeleteShippoConfigurationResponse>;
402
+ declare function queryShippoConfigurations(): __PublicMethodMetaInfo<'GET', {}, QueryShippoConfigurationsRequest$1, QueryShippoConfigurationsRequest, QueryShippoConfigurationsResponse$1, QueryShippoConfigurationsResponse>;
403
+ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
404
+ id: string;
405
+ }, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
406
+
407
+ export { type __PublicMethodMetaInfo, createShippoConfiguration, deleteShippoConfiguration, getShippoConfiguration, queryShippoConfigurations, updateExtendedFields, updateShippoConfiguration };