@wix/auto_sdk_ecom_shippo-configurations 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +29 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +288 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +144 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +96 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{internal/meta.d.mts → cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +48 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.mts → cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +362 -0
- package/build/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +20 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +279 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +112 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +81 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{internal/meta.d.ts → es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +45 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.ts → es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +330 -0
- package/build/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +29 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +288 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +144 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +96 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{meta.d.mts → internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +48 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/internal/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.mts → cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +362 -0
- package/build/internal/cjs/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.d.ts +20 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js +20 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.d.ts +22 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js +279 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.d.ts +26 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js +112 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.d.ts +67 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js +81 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.public.js.map +1 -0
- package/build/{meta.d.ts → internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.d.ts} +183 -62
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js +45 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.types.js.map +1 -0
- package/build/internal/{ecom-v1-shippo-configuration-shippo-configurations.universal-nw2-6NKP.d.ts → es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.d.ts} +163 -58
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js +330 -0
- package/build/internal/es/src/ecom-v1-shippo-configuration-shippo-configurations.universal.js.map +1 -0
- package/package.json +13 -14
- package/build/index.d.mts +0 -78
- package/build/index.d.ts +0 -78
- package/build/index.js +0 -734
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -696
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -78
- package/build/internal/index.d.ts +0 -78
- package/build/internal/index.js +0 -734
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -696
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.js +0 -417
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -385
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.js +0 -417
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -385
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { CreateShippoConfigurationOptions, ShippoConfiguration, ShippoConfigurationCreatedEnvelope, ShippoConfigurationDeletedEnvelope, ShippoConfigurationUpdatedEnvelope, ShippoConfigurationsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateShippoConfiguration } from './ecom-v1-shippo-configuration-shippo-configurations.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createShippoConfiguration(httpClient: HttpClient): CreateShippoConfigurationSignature;
|
|
7
|
+
interface CreateShippoConfigurationSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a ShippoConfiguration.
|
|
10
|
+
* @param - ShippoConfiguration to be created.
|
|
11
|
+
* @returns The created ShippoConfiguration.
|
|
12
|
+
*/
|
|
13
|
+
(shippoConfiguration: ShippoConfiguration, options?: CreateShippoConfigurationOptions | undefined): Promise<ShippoConfiguration>;
|
|
14
|
+
}
|
|
15
|
+
export declare function getShippoConfiguration(httpClient: HttpClient): GetShippoConfigurationSignature;
|
|
16
|
+
interface GetShippoConfigurationSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a ShippoConfiguration.
|
|
19
|
+
* @param - ID of the ShippoConfiguration to retrieve.
|
|
20
|
+
* @returns The requested ShippoConfiguration.
|
|
21
|
+
*/
|
|
22
|
+
(shippoConfigurationId: string): Promise<ShippoConfiguration>;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateShippoConfiguration(httpClient: HttpClient): UpdateShippoConfigurationSignature;
|
|
25
|
+
interface UpdateShippoConfigurationSignature {
|
|
26
|
+
/**
|
|
27
|
+
* Updates a ShippoConfiguration.
|
|
28
|
+
* @param - ShippoConfiguration ID.
|
|
29
|
+
* @returns Updated ShippoConfiguration.
|
|
30
|
+
*/
|
|
31
|
+
(_id: string, shippoConfiguration: UpdateShippoConfiguration): Promise<ShippoConfiguration>;
|
|
32
|
+
}
|
|
33
|
+
export declare function deleteShippoConfiguration(httpClient: HttpClient): DeleteShippoConfigurationSignature;
|
|
34
|
+
interface DeleteShippoConfigurationSignature {
|
|
35
|
+
/**
|
|
36
|
+
* Deletes a ShippoConfiguration.
|
|
37
|
+
* @param - ID of the ShippoConfiguration to delete.
|
|
38
|
+
*/
|
|
39
|
+
(shippoConfigurationId: string): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
export declare function queryShippoConfigurations(httpClient: HttpClient): QueryShippoConfigurationsSignature;
|
|
42
|
+
interface QueryShippoConfigurationsSignature {
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves a list of ShippoConfigurations, given the provided [paging, filtering, and sorting][1].
|
|
45
|
+
*
|
|
46
|
+
* Up to 1,000 ShippoConfigurations can be returned per request.
|
|
47
|
+
*
|
|
48
|
+
* To learn how to query ShippoConfigurations, see [API Query Language][2].
|
|
49
|
+
*
|
|
50
|
+
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
51
|
+
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
52
|
+
*/
|
|
53
|
+
(): ShippoConfigurationsQueryBuilder;
|
|
54
|
+
}
|
|
55
|
+
export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
56
|
+
interface UpdateExtendedFieldsSignature {
|
|
57
|
+
/**
|
|
58
|
+
* Updates extended fields of a ShippoConfiguration without incrementing revision
|
|
59
|
+
* @param - ID of the entity to update.
|
|
60
|
+
* @param - Identifier for the app whose extended fields are being updated.
|
|
61
|
+
*/
|
|
62
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
63
|
+
}
|
|
64
|
+
export declare const onShippoConfigurationCreated: EventDefinition<ShippoConfigurationCreatedEnvelope, "wix.ecom.v1.shippo_configuration_created">;
|
|
65
|
+
export declare const onShippoConfigurationDeleted: EventDefinition<ShippoConfigurationDeletedEnvelope, "wix.ecom.v1.shippo_configuration_deleted">;
|
|
66
|
+
export declare const onShippoConfigurationUpdated: EventDefinition<ShippoConfigurationUpdatedEnvelope, "wix.ecom.v1.shippo_configuration_updated">;
|
|
67
|
+
export { ActionEvent, Address, AddressLocation, BaseEventMetadata, CalculationType, CreateShippoConfigurationOptions, CreateShippoConfigurationRequest, CreateShippoConfigurationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteShippoConfigurationRequest, DeleteShippoConfigurationResponse, DomainEvent, DomainEventBodyOneOf, DomesticService, DomesticServiceSettings, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetShippoConfigurationRequest, GetShippoConfigurationResponse, HandlingFee, IdentificationData, IdentificationDataIdOneOf, InternationalService, InternationalServiceSettings, MessageEnvelope, PackageDetails, PackageDimensions, PackageType, QueryShippoConfigurationsRequest, QueryShippoConfigurationsResponse, RestoreInfo, ServiceSettings, ShippoConfiguration, ShippoConfigurationCreatedEnvelope, ShippoConfigurationDeletedEnvelope, ShippoConfigurationUpdatedEnvelope, ShippoConfigurationsQueryBuilder, ShippoConfigurationsQueryResult, SortOrder, Sorting, StreetAddress, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateShippoConfiguration, UpdateShippoConfigurationRequest, UpdateShippoConfigurationResponse, WebhookIdentityType, } from './ecom-v1-shippo-configuration-shippo-configurations.universal.js';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.PackageType = exports.InternationalService = exports.DomesticService = exports.CalculationType = exports.onShippoConfigurationUpdated = exports.onShippoConfigurationDeleted = exports.onShippoConfigurationCreated = exports.updateExtendedFields = exports.queryShippoConfigurations = exports.deleteShippoConfiguration = exports.updateShippoConfiguration = exports.getShippoConfiguration = exports.createShippoConfiguration = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const address_1 = require("@wix/sdk-runtime/transformations/address");
|
|
6
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
8
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
9
|
+
const ecom_v1_shippo_configuration_shippo_configurations_universal_js_1 = require("./ecom-v1-shippo-configuration-shippo-configurations.universal.js");
|
|
10
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
11
|
+
function createShippoConfiguration(httpClient) {
|
|
12
|
+
return (shippoConfiguration, options) => (0, ecom_v1_shippo_configuration_shippo_configurations_universal_js_1.createShippoConfiguration)(shippoConfiguration, options,
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
{ httpClient });
|
|
15
|
+
}
|
|
16
|
+
exports.createShippoConfiguration = createShippoConfiguration;
|
|
17
|
+
function getShippoConfiguration(httpClient) {
|
|
18
|
+
return (shippoConfigurationId) => (0, ecom_v1_shippo_configuration_shippo_configurations_universal_js_1.getShippoConfiguration)(shippoConfigurationId,
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
{ httpClient });
|
|
21
|
+
}
|
|
22
|
+
exports.getShippoConfiguration = getShippoConfiguration;
|
|
23
|
+
function updateShippoConfiguration(httpClient) {
|
|
24
|
+
return (_id, shippoConfiguration) => (0, ecom_v1_shippo_configuration_shippo_configurations_universal_js_1.updateShippoConfiguration)(_id, shippoConfiguration,
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
{ httpClient });
|
|
27
|
+
}
|
|
28
|
+
exports.updateShippoConfiguration = updateShippoConfiguration;
|
|
29
|
+
function deleteShippoConfiguration(httpClient) {
|
|
30
|
+
return (shippoConfigurationId) => (0, ecom_v1_shippo_configuration_shippo_configurations_universal_js_1.deleteShippoConfiguration)(shippoConfigurationId,
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
{ httpClient });
|
|
33
|
+
}
|
|
34
|
+
exports.deleteShippoConfiguration = deleteShippoConfiguration;
|
|
35
|
+
function queryShippoConfigurations(httpClient) {
|
|
36
|
+
return () => (0, ecom_v1_shippo_configuration_shippo_configurations_universal_js_1.queryShippoConfigurations)(
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
{ httpClient });
|
|
39
|
+
}
|
|
40
|
+
exports.queryShippoConfigurations = queryShippoConfigurations;
|
|
41
|
+
function updateExtendedFields(httpClient) {
|
|
42
|
+
return (_id, namespace, options) => (0, ecom_v1_shippo_configuration_shippo_configurations_universal_js_1.updateExtendedFields)(_id, namespace, options,
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
{ httpClient });
|
|
45
|
+
}
|
|
46
|
+
exports.updateExtendedFields = updateExtendedFields;
|
|
47
|
+
exports.onShippoConfigurationCreated = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.shippo_configuration_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
48
|
+
{
|
|
49
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
50
|
+
paths: [
|
|
51
|
+
{ path: 'entity.createdDate' },
|
|
52
|
+
{ path: 'entity.updatedDate' },
|
|
53
|
+
{ path: 'metadata.eventTime' },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
transformFn: address_1.transformRESTAddressToSDKAddress,
|
|
58
|
+
paths: [{ path: 'entity.shipFromAddress' }],
|
|
59
|
+
},
|
|
60
|
+
])))();
|
|
61
|
+
exports.onShippoConfigurationDeleted = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.shippo_configuration_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
62
|
+
{
|
|
63
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
64
|
+
paths: [
|
|
65
|
+
{ path: 'entity.createdDate' },
|
|
66
|
+
{ path: 'entity.updatedDate' },
|
|
67
|
+
{ path: 'metadata.eventTime' },
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
transformFn: address_1.transformRESTAddressToSDKAddress,
|
|
72
|
+
paths: [{ path: 'entity.shipFromAddress' }],
|
|
73
|
+
},
|
|
74
|
+
])))();
|
|
75
|
+
exports.onShippoConfigurationUpdated = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.shippo_configuration_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
76
|
+
{
|
|
77
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
78
|
+
paths: [
|
|
79
|
+
{ path: 'entity.createdDate' },
|
|
80
|
+
{ path: 'entity.updatedDate' },
|
|
81
|
+
{ path: 'metadata.eventTime' },
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
transformFn: address_1.transformRESTAddressToSDKAddress,
|
|
86
|
+
paths: [{ path: 'entity.shipFromAddress' }],
|
|
87
|
+
},
|
|
88
|
+
])))();
|
|
89
|
+
var ecom_v1_shippo_configuration_shippo_configurations_universal_js_2 = require("./ecom-v1-shippo-configuration-shippo-configurations.universal.js");
|
|
90
|
+
Object.defineProperty(exports, "CalculationType", { enumerable: true, get: function () { return ecom_v1_shippo_configuration_shippo_configurations_universal_js_2.CalculationType; } });
|
|
91
|
+
Object.defineProperty(exports, "DomesticService", { enumerable: true, get: function () { return ecom_v1_shippo_configuration_shippo_configurations_universal_js_2.DomesticService; } });
|
|
92
|
+
Object.defineProperty(exports, "InternationalService", { enumerable: true, get: function () { return ecom_v1_shippo_configuration_shippo_configurations_universal_js_2.InternationalService; } });
|
|
93
|
+
Object.defineProperty(exports, "PackageType", { enumerable: true, get: function () { return ecom_v1_shippo_configuration_shippo_configurations_universal_js_2.PackageType; } });
|
|
94
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return ecom_v1_shippo_configuration_shippo_configurations_universal_js_2.SortOrder; } });
|
|
95
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return ecom_v1_shippo_configuration_shippo_configurations_universal_js_2.WebhookIdentityType; } });
|
|
96
|
+
//# sourceMappingURL=ecom-v1-shippo-configuration-shippo-configurations.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-shippo-configuration-shippo-configurations.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-shippo-configuration-shippo-configurations.public.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface ShippoConfiguration {
|
|
1
|
+
export interface ShippoConfiguration {
|
|
4
2
|
/**
|
|
5
3
|
* ShippoConfiguration ID.
|
|
6
4
|
* @format GUID
|
|
@@ -67,7 +65,7 @@ interface ShippoConfiguration {
|
|
|
67
65
|
/** Data extensions. */
|
|
68
66
|
extendedFields?: ExtendedFields;
|
|
69
67
|
}
|
|
70
|
-
interface DomesticServiceSettings {
|
|
68
|
+
export interface DomesticServiceSettings {
|
|
71
69
|
/**
|
|
72
70
|
* DomesticServiceSettings ID.
|
|
73
71
|
* @format GUID
|
|
@@ -79,13 +77,13 @@ interface DomesticServiceSettings {
|
|
|
79
77
|
/** Service settings. */
|
|
80
78
|
serviceSettings?: ServiceSettings;
|
|
81
79
|
}
|
|
82
|
-
declare enum DomesticService {
|
|
80
|
+
export declare enum DomesticService {
|
|
83
81
|
UNKNOWN_DOMESTIC_SERVICE = "UNKNOWN_DOMESTIC_SERVICE",
|
|
84
82
|
GROUND_ADVANTAGE = "GROUND_ADVANTAGE",
|
|
85
83
|
PRIORITY_MAIL = "PRIORITY_MAIL",
|
|
86
84
|
PRIORITY_MAIL_EXPRESS = "PRIORITY_MAIL_EXPRESS"
|
|
87
85
|
}
|
|
88
|
-
interface ServiceSettings {
|
|
86
|
+
export interface ServiceSettings {
|
|
89
87
|
/**
|
|
90
88
|
* Estimated delivery time.
|
|
91
89
|
* @maxLength 500
|
|
@@ -99,7 +97,7 @@ interface ServiceSettings {
|
|
|
99
97
|
*/
|
|
100
98
|
freeDeliveryMinimumAmount?: string | null;
|
|
101
99
|
}
|
|
102
|
-
interface HandlingFee {
|
|
100
|
+
export interface HandlingFee {
|
|
103
101
|
/**
|
|
104
102
|
* Value that will be used to calculate the fee. For example, percentage fee with value 5% to calculate the fee.
|
|
105
103
|
* @decimalValue options { gte:0, maxScale:4 }
|
|
@@ -108,12 +106,12 @@ interface HandlingFee {
|
|
|
108
106
|
/** How to calculate the fee: fixed amount or by percentage. */
|
|
109
107
|
calculationType?: CalculationType;
|
|
110
108
|
}
|
|
111
|
-
declare enum CalculationType {
|
|
109
|
+
export declare enum CalculationType {
|
|
112
110
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
113
111
|
FIXED = "FIXED",
|
|
114
112
|
PERCENTAGE = "PERCENTAGE"
|
|
115
113
|
}
|
|
116
|
-
interface InternationalServiceSettings {
|
|
114
|
+
export interface InternationalServiceSettings {
|
|
117
115
|
/**
|
|
118
116
|
* InternationalServiceSettings ID.
|
|
119
117
|
* @format GUID
|
|
@@ -125,13 +123,13 @@ interface InternationalServiceSettings {
|
|
|
125
123
|
/** Service settings. */
|
|
126
124
|
serviceSettings?: ServiceSettings;
|
|
127
125
|
}
|
|
128
|
-
declare enum InternationalService {
|
|
126
|
+
export declare enum InternationalService {
|
|
129
127
|
UNKNOWN_INTERNATIONAL_SERVICE = "UNKNOWN_INTERNATIONAL_SERVICE",
|
|
130
128
|
FIRST_CLASS_PACKAGE_INTERNATIONAL = "FIRST_CLASS_PACKAGE_INTERNATIONAL",
|
|
131
129
|
PRIORITY_MAIL_INTERNATIONAL = "PRIORITY_MAIL_INTERNATIONAL",
|
|
132
130
|
PRIORITY_MAIL_EXPRESS_INTERNATIONAL = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL"
|
|
133
131
|
}
|
|
134
|
-
declare enum PackageType {
|
|
132
|
+
export declare enum PackageType {
|
|
135
133
|
UNKNOWN_PACKAGE_TYPE = "UNKNOWN_PACKAGE_TYPE",
|
|
136
134
|
CUSTOM = "CUSTOM",
|
|
137
135
|
FLAT_RATE_ENVELOPE = "FLAT_RATE_ENVELOPE",
|
|
@@ -141,7 +139,7 @@ declare enum PackageType {
|
|
|
141
139
|
MEDIUM_FLAT_RATE_BOX_2 = "MEDIUM_FLAT_RATE_BOX_2",
|
|
142
140
|
LARGE_FLAT_RATE_BOX = "LARGE_FLAT_RATE_BOX"
|
|
143
141
|
}
|
|
144
|
-
interface PackageDetails {
|
|
142
|
+
export interface PackageDetails {
|
|
145
143
|
/**
|
|
146
144
|
* Package name. Must be set when package type is CUSTOM.
|
|
147
145
|
* For other package types, it is read-only, and an exception will be thrown
|
|
@@ -162,7 +160,7 @@ interface PackageDetails {
|
|
|
162
160
|
*/
|
|
163
161
|
maxNumberOfProducts?: string | null;
|
|
164
162
|
}
|
|
165
|
-
interface PackageDimensions {
|
|
163
|
+
export interface PackageDimensions {
|
|
166
164
|
/**
|
|
167
165
|
* Package length.
|
|
168
166
|
* @decimalValue options { gte:0, maxScale:3 }
|
|
@@ -180,7 +178,7 @@ interface PackageDimensions {
|
|
|
180
178
|
height?: string;
|
|
181
179
|
}
|
|
182
180
|
/** Physical address */
|
|
183
|
-
interface Address {
|
|
181
|
+
export interface Address {
|
|
184
182
|
/**
|
|
185
183
|
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
186
184
|
* @format COUNTRY
|
|
@@ -224,13 +222,19 @@ interface Address {
|
|
|
224
222
|
*/
|
|
225
223
|
subdivisionFullname?: string | null;
|
|
226
224
|
}
|
|
227
|
-
interface StreetAddress {
|
|
225
|
+
export interface StreetAddress {
|
|
228
226
|
/** Street number. */
|
|
229
227
|
number?: string;
|
|
230
228
|
/** Street name. */
|
|
231
229
|
name?: string;
|
|
232
230
|
}
|
|
233
|
-
interface
|
|
231
|
+
export interface AddressLocation {
|
|
232
|
+
/** Address latitude. */
|
|
233
|
+
latitude?: number | null;
|
|
234
|
+
/** Address longitude. */
|
|
235
|
+
longitude?: number | null;
|
|
236
|
+
}
|
|
237
|
+
export interface ExtendedFields {
|
|
234
238
|
/**
|
|
235
239
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
236
240
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -241,49 +245,49 @@ interface ExtendedFields {
|
|
|
241
245
|
*/
|
|
242
246
|
namespaces?: Record<string, Record<string, any>>;
|
|
243
247
|
}
|
|
244
|
-
interface CreateShippoConfigurationRequest {
|
|
248
|
+
export interface CreateShippoConfigurationRequest {
|
|
245
249
|
/** ShippoConfiguration to be created. */
|
|
246
250
|
shippoConfiguration: ShippoConfiguration;
|
|
247
251
|
/** @decimalValue options { gte:0, maxScale:6 } */
|
|
248
252
|
backupRate?: string | null;
|
|
249
253
|
}
|
|
250
|
-
interface CreateShippoConfigurationResponse {
|
|
254
|
+
export interface CreateShippoConfigurationResponse {
|
|
251
255
|
/** The created ShippoConfiguration. */
|
|
252
256
|
shippoConfiguration?: ShippoConfiguration;
|
|
253
257
|
}
|
|
254
|
-
interface GetShippoConfigurationRequest {
|
|
258
|
+
export interface GetShippoConfigurationRequest {
|
|
255
259
|
/**
|
|
256
260
|
* ID of the ShippoConfiguration to retrieve.
|
|
257
261
|
* @format GUID
|
|
258
262
|
*/
|
|
259
263
|
shippoConfigurationId: string;
|
|
260
264
|
}
|
|
261
|
-
interface GetShippoConfigurationResponse {
|
|
265
|
+
export interface GetShippoConfigurationResponse {
|
|
262
266
|
/** The requested ShippoConfiguration. */
|
|
263
267
|
shippoConfiguration?: ShippoConfiguration;
|
|
264
268
|
}
|
|
265
|
-
interface UpdateShippoConfigurationRequest {
|
|
269
|
+
export interface UpdateShippoConfigurationRequest {
|
|
266
270
|
/** ShippoConfiguration to be updated, may be partial. */
|
|
267
271
|
shippoConfiguration: ShippoConfiguration;
|
|
268
272
|
}
|
|
269
|
-
interface UpdateShippoConfigurationResponse {
|
|
273
|
+
export interface UpdateShippoConfigurationResponse {
|
|
270
274
|
/** Updated ShippoConfiguration. */
|
|
271
275
|
shippoConfiguration?: ShippoConfiguration;
|
|
272
276
|
}
|
|
273
|
-
interface DeleteShippoConfigurationRequest {
|
|
277
|
+
export interface DeleteShippoConfigurationRequest {
|
|
274
278
|
/**
|
|
275
279
|
* ID of the ShippoConfiguration to delete.
|
|
276
280
|
* @format GUID
|
|
277
281
|
*/
|
|
278
282
|
shippoConfigurationId: string;
|
|
279
283
|
}
|
|
280
|
-
interface DeleteShippoConfigurationResponse {
|
|
284
|
+
export interface DeleteShippoConfigurationResponse {
|
|
281
285
|
}
|
|
282
|
-
interface QueryShippoConfigurationsRequest {
|
|
286
|
+
export interface QueryShippoConfigurationsRequest {
|
|
283
287
|
/** WQL expression. */
|
|
284
288
|
query?: CursorQuery;
|
|
285
289
|
}
|
|
286
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
290
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
287
291
|
/** 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`. */
|
|
288
292
|
cursorPaging?: CursorPaging;
|
|
289
293
|
/**
|
|
@@ -303,11 +307,11 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
303
307
|
sort?: Sorting[];
|
|
304
308
|
}
|
|
305
309
|
/** @oneof */
|
|
306
|
-
interface CursorQueryPagingMethodOneOf {
|
|
310
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
307
311
|
/** 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`. */
|
|
308
312
|
cursorPaging?: CursorPaging;
|
|
309
313
|
}
|
|
310
|
-
interface Sorting {
|
|
314
|
+
export interface Sorting {
|
|
311
315
|
/**
|
|
312
316
|
* Name of the field to sort by.
|
|
313
317
|
* @maxLength 512
|
|
@@ -316,11 +320,11 @@ interface Sorting {
|
|
|
316
320
|
/** Sort order. */
|
|
317
321
|
order?: SortOrder;
|
|
318
322
|
}
|
|
319
|
-
declare enum SortOrder {
|
|
323
|
+
export declare enum SortOrder {
|
|
320
324
|
ASC = "ASC",
|
|
321
325
|
DESC = "DESC"
|
|
322
326
|
}
|
|
323
|
-
interface CursorPaging {
|
|
327
|
+
export interface CursorPaging {
|
|
324
328
|
/**
|
|
325
329
|
* Maximum number of items to return in the results.
|
|
326
330
|
* @max 100
|
|
@@ -335,13 +339,13 @@ interface CursorPaging {
|
|
|
335
339
|
*/
|
|
336
340
|
cursor?: string | null;
|
|
337
341
|
}
|
|
338
|
-
interface QueryShippoConfigurationsResponse {
|
|
342
|
+
export interface QueryShippoConfigurationsResponse {
|
|
339
343
|
/** List of ShippoConfigurations. */
|
|
340
344
|
shippoConfigurations?: ShippoConfiguration[];
|
|
341
345
|
/** Paging metadata. */
|
|
342
346
|
pagingMetadata?: CursorPagingMetadata;
|
|
343
347
|
}
|
|
344
|
-
interface CursorPagingMetadata {
|
|
348
|
+
export interface CursorPagingMetadata {
|
|
345
349
|
/** Number of items returned in the response. */
|
|
346
350
|
count?: number | null;
|
|
347
351
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -354,7 +358,7 @@ interface CursorPagingMetadata {
|
|
|
354
358
|
*/
|
|
355
359
|
hasNext?: boolean | null;
|
|
356
360
|
}
|
|
357
|
-
interface Cursors {
|
|
361
|
+
export interface Cursors {
|
|
358
362
|
/**
|
|
359
363
|
* Cursor string pointing to the next page in the list of results.
|
|
360
364
|
* @maxLength 16000
|
|
@@ -366,7 +370,7 @@ interface Cursors {
|
|
|
366
370
|
*/
|
|
367
371
|
prev?: string | null;
|
|
368
372
|
}
|
|
369
|
-
interface UpdateExtendedFieldsRequest {
|
|
373
|
+
export interface UpdateExtendedFieldsRequest {
|
|
370
374
|
/** ID of the entity to update. */
|
|
371
375
|
id: string;
|
|
372
376
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -374,34 +378,151 @@ interface UpdateExtendedFieldsRequest {
|
|
|
374
378
|
/** 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. */
|
|
375
379
|
namespaceData: Record<string, any> | null;
|
|
376
380
|
}
|
|
377
|
-
interface UpdateExtendedFieldsResponse {
|
|
381
|
+
export interface UpdateExtendedFieldsResponse {
|
|
378
382
|
/** Updated ShippoConfiguration. */
|
|
379
383
|
shippoConfiguration?: ShippoConfiguration;
|
|
380
384
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.PackageType = exports.InternationalService = exports.CalculationType = exports.DomesticService = void 0;
|
|
4
|
+
var DomesticService;
|
|
5
|
+
(function (DomesticService) {
|
|
6
|
+
DomesticService["UNKNOWN_DOMESTIC_SERVICE"] = "UNKNOWN_DOMESTIC_SERVICE";
|
|
7
|
+
DomesticService["GROUND_ADVANTAGE"] = "GROUND_ADVANTAGE";
|
|
8
|
+
DomesticService["PRIORITY_MAIL"] = "PRIORITY_MAIL";
|
|
9
|
+
DomesticService["PRIORITY_MAIL_EXPRESS"] = "PRIORITY_MAIL_EXPRESS";
|
|
10
|
+
})(DomesticService || (exports.DomesticService = DomesticService = {}));
|
|
11
|
+
var CalculationType;
|
|
12
|
+
(function (CalculationType) {
|
|
13
|
+
CalculationType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
14
|
+
CalculationType["FIXED"] = "FIXED";
|
|
15
|
+
CalculationType["PERCENTAGE"] = "PERCENTAGE";
|
|
16
|
+
})(CalculationType || (exports.CalculationType = CalculationType = {}));
|
|
17
|
+
var InternationalService;
|
|
18
|
+
(function (InternationalService) {
|
|
19
|
+
InternationalService["UNKNOWN_INTERNATIONAL_SERVICE"] = "UNKNOWN_INTERNATIONAL_SERVICE";
|
|
20
|
+
InternationalService["FIRST_CLASS_PACKAGE_INTERNATIONAL"] = "FIRST_CLASS_PACKAGE_INTERNATIONAL";
|
|
21
|
+
InternationalService["PRIORITY_MAIL_INTERNATIONAL"] = "PRIORITY_MAIL_INTERNATIONAL";
|
|
22
|
+
InternationalService["PRIORITY_MAIL_EXPRESS_INTERNATIONAL"] = "PRIORITY_MAIL_EXPRESS_INTERNATIONAL";
|
|
23
|
+
})(InternationalService || (exports.InternationalService = InternationalService = {}));
|
|
24
|
+
var PackageType;
|
|
25
|
+
(function (PackageType) {
|
|
26
|
+
PackageType["UNKNOWN_PACKAGE_TYPE"] = "UNKNOWN_PACKAGE_TYPE";
|
|
27
|
+
PackageType["CUSTOM"] = "CUSTOM";
|
|
28
|
+
PackageType["FLAT_RATE_ENVELOPE"] = "FLAT_RATE_ENVELOPE";
|
|
29
|
+
PackageType["PADDED_FLAT_RATE_ENVELOPE"] = "PADDED_FLAT_RATE_ENVELOPE";
|
|
30
|
+
PackageType["SMALL_FLAT_RATE_BOX"] = "SMALL_FLAT_RATE_BOX";
|
|
31
|
+
PackageType["MEDIUM_FLAT_RATE_BOX_1"] = "MEDIUM_FLAT_RATE_BOX_1";
|
|
32
|
+
PackageType["MEDIUM_FLAT_RATE_BOX_2"] = "MEDIUM_FLAT_RATE_BOX_2";
|
|
33
|
+
PackageType["LARGE_FLAT_RATE_BOX"] = "LARGE_FLAT_RATE_BOX";
|
|
34
|
+
})(PackageType || (exports.PackageType = PackageType = {}));
|
|
35
|
+
var SortOrder;
|
|
36
|
+
(function (SortOrder) {
|
|
37
|
+
SortOrder["ASC"] = "ASC";
|
|
38
|
+
SortOrder["DESC"] = "DESC";
|
|
39
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
40
|
+
var WebhookIdentityType;
|
|
41
|
+
(function (WebhookIdentityType) {
|
|
42
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
43
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
44
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
45
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
46
|
+
WebhookIdentityType["APP"] = "APP";
|
|
47
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
48
|
+
//# sourceMappingURL=ecom-v1-shippo-configuration-shippo-configurations.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-shippo-configuration-shippo-configurations.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-shippo-configuration-shippo-configurations.types.ts"],"names":[],"mappings":";;;AAiFA,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,wDAAqC,CAAA;IACrC,kDAA+B,CAAA;IAC/B,kEAA+C,CAAA;AACjD,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AA2BD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gDAA6B,CAAA;IAC7B,kCAAe,CAAA;IACf,4CAAyB,CAAA;AAC3B,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAeD,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uFAA+D,CAAA;IAC/D,+FAAuE,CAAA;IACvE,mFAA2D,CAAA;IAC3D,mGAA2E,CAAA;AAC7E,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAED,IAAY,WASX;AATD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,gCAAiB,CAAA;IACjB,wDAAyC,CAAA;IACzC,sEAAuD,CAAA;IACvD,0DAA2C,CAAA;IAC3C,gEAAiD,CAAA;IACjD,gEAAiD,CAAA;IACjD,0DAA2C,CAAA;AAC7C,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAwMD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAqND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|