@wix/auto_sdk_loyalty_imports 1.0.12 → 1.0.14
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 +88 -1
- package/build/cjs/index.js +536 -15
- package/build/cjs/index.js.map +1 -1
- package/build/{internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → cjs/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.ts} +57 -174
- package/build/cjs/meta.d.ts +338 -1
- package/build/cjs/meta.js +345 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +88 -0
- package/build/es/index.mjs +505 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → es/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.mts} +57 -174
- package/build/es/{src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → meta.d.mts} +53 -188
- package/build/es/meta.mjs +316 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +88 -1
- package/build/internal/cjs/index.js +536 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/{es/src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → internal/cjs/loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.ts} +57 -174
- package/build/internal/cjs/meta.d.ts +338 -1
- package/build/internal/cjs/meta.js +345 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +88 -0
- package/build/internal/es/index.mjs +505 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/{src/loyalty-imports-v1-loyalty-import-imports.universal.d.ts → loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.d.mts} +57 -174
- package/build/{cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts → internal/es/meta.d.mts} +53 -188
- package/build/internal/es/meta.mjs +316 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +10 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -340
- package/build/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -308
- package/build/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -23
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -243
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -142
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -61
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +0 -473
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -41
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -340
- package/build/internal/cjs/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.d.ts +0 -16
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js +0 -16
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.context.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.d.ts +0 -46
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js +0 -234
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.http.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.d.ts +0 -18
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js +0 -110
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.d.ts +0 -77
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js +0 -48
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.public.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.d.ts +0 -473
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js +0 -38
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.types.js.map +0 -1
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js +0 -308
- package/build/internal/es/src/loyalty-imports-v1-loyalty-import-imports.universal.js.map +0 -1
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1,88 @@
|
|
|
1
|
-
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { C as CreateLoyaltyImportOptions, a as CreateLoyaltyImportResponse, L as LoyaltyImport, G as GetErrorFileDownloadUrlResponse, E as ExecuteLoyaltyImportOptions, b as ExecuteLoyaltyImportResponse, c as CreateLoyaltyImportFileUrlResponse, d as LoyaltyImportsQueryBuilder, e as LoyaltyImportCreatedEnvelope } from './loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.js';
|
|
3
|
+
export { K as ActionEvent, V as BaseEventMetadata, f as ColumnName, p as CreateLoyaltyImportFileUrlRequest, k as CreateLoyaltyImportRequest, t as CursorPaging, v as CursorPagingMetadata, q as CursorQuery, r as CursorQueryPagingMethodOneOf, w as Cursors, D as DeleteLoyaltyImportRequest, x as DeleteLoyaltyImportResponse, y as DomainEvent, z as DomainEventBodyOneOf, M as Empty, A as EntityCreatedEvent, J as EntityDeletedEvent, B as EntityUpdatedEvent, X as EventMetadata, o as ExecuteLoyaltyImportRequest, g as FileHeader, F as FileMetadata, n as GetErrorFileDownloadUrlRequest, l as GetLoyaltyImportRequest, m as GetLoyaltyImportResponse, h as HeaderMapping, H as HeaderMappingInfo, T as IdentificationData, U as IdentificationDataIdOneOf, N as ImportFinished, j as ImportResult, I as ImportStatus, Y as LoyaltyImportsQueryResult, O as MessageEnvelope, P as ParseResult, Q as QueryLoyaltyImportsRequest, u as QueryLoyaltyImportsResponse, R as RestoreInfo, i as SampleDataRow, S as SortOrder, s as Sorting, W as WebhookIdentityType } from './loyalty-imports-v1-loyalty-import-imports.universal-CPUezeMW.js';
|
|
4
|
+
|
|
5
|
+
declare function createLoyaltyImport$1(httpClient: HttpClient): CreateLoyaltyImportSignature;
|
|
6
|
+
interface CreateLoyaltyImportSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates an import object based on an uploaded file.
|
|
9
|
+
*
|
|
10
|
+
* Call this method after uploading your file to the URL obtained from `createLoyaltyImportFileUrl()`.
|
|
11
|
+
* @param - URL of the file to import.
|
|
12
|
+
*/
|
|
13
|
+
(fileUrl: string, options?: CreateLoyaltyImportOptions | undefined): Promise<CreateLoyaltyImportResponse>;
|
|
14
|
+
}
|
|
15
|
+
declare function getLoyaltyImport$1(httpClient: HttpClient): GetLoyaltyImportSignature;
|
|
16
|
+
interface GetLoyaltyImportSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a loyalty import.
|
|
19
|
+
* @param - Loyalty import ID.
|
|
20
|
+
* @returns Retrieved loyalty import.
|
|
21
|
+
*/
|
|
22
|
+
(loyaltyImportId: string): Promise<LoyaltyImport>;
|
|
23
|
+
}
|
|
24
|
+
declare function getErrorFileDownloadUrl$1(httpClient: HttpClient): GetErrorFileDownloadUrlSignature;
|
|
25
|
+
interface GetErrorFileDownloadUrlSignature {
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the download URL for the error file of a failed loyalty import.
|
|
28
|
+
*
|
|
29
|
+
* If an import fails, the `importResult.errorFileExists` field in the `LoyaltyImport` object is set to `true`.
|
|
30
|
+
*
|
|
31
|
+
* Use this method to get the URL of the error file, which contains details about which items couldn't be imported and why.
|
|
32
|
+
* @param - Loyalty import ID.
|
|
33
|
+
*/
|
|
34
|
+
(loyaltyImportId: string): Promise<GetErrorFileDownloadUrlResponse>;
|
|
35
|
+
}
|
|
36
|
+
declare function executeLoyaltyImport$1(httpClient: HttpClient): ExecuteLoyaltyImportSignature;
|
|
37
|
+
interface ExecuteLoyaltyImportSignature {
|
|
38
|
+
/**
|
|
39
|
+
* Starts the actual import process for a loyalty import.
|
|
40
|
+
*
|
|
41
|
+
* Call this method after the loyalty import object reaches the `PARSED` status.
|
|
42
|
+
* @param - Loyalty import ID.
|
|
43
|
+
*/
|
|
44
|
+
(loyaltyImportId: string, options?: ExecuteLoyaltyImportOptions | undefined): Promise<ExecuteLoyaltyImportResponse>;
|
|
45
|
+
}
|
|
46
|
+
declare function createLoyaltyImportFileUrl$1(httpClient: HttpClient): CreateLoyaltyImportFileUrlSignature;
|
|
47
|
+
interface CreateLoyaltyImportFileUrlSignature {
|
|
48
|
+
/**
|
|
49
|
+
* Creates a URL for uploading a loyalty import file.
|
|
50
|
+
*
|
|
51
|
+
* This method is the first step in the loyalty import process. It returns a file path and an upload URL, which you'll use in subsequent steps of the import process.
|
|
52
|
+
*/
|
|
53
|
+
(): Promise<CreateLoyaltyImportFileUrlResponse>;
|
|
54
|
+
}
|
|
55
|
+
declare function queryLoyaltyImports$1(httpClient: HttpClient): QueryLoyaltyImportsSignature;
|
|
56
|
+
interface QueryLoyaltyImportsSignature {
|
|
57
|
+
/**
|
|
58
|
+
* Creates a query to retrieve a list of loyalty imports.
|
|
59
|
+
*
|
|
60
|
+
* The `queryLoyaltyImports()` function builds a query to retrieve a list of imports and returns a `LoyaltyImportsQueryBuilder` object.
|
|
61
|
+
*
|
|
62
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
63
|
+
*
|
|
64
|
+
* You can refine the query by chaining `LoyaltyImportsQueryBuilder` functions onto the query. `LoyaltyImportsQueryBuilder` functions enable you to sort, filter, and control the results `queryLoyaltyImports()` returns.
|
|
65
|
+
*
|
|
66
|
+
* `queryLoyaltyImports()` runs with these `LoyaltyImportsQueryBuilder` defaults, which you can override:
|
|
67
|
+
*
|
|
68
|
+
* - `limit(50)`
|
|
69
|
+
* - `descending("_createdDate")`
|
|
70
|
+
*
|
|
71
|
+
* The functions that are chained to `queryLoyaltyImports()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('_createdDate'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by the created date.
|
|
72
|
+
*/
|
|
73
|
+
(): LoyaltyImportsQueryBuilder;
|
|
74
|
+
}
|
|
75
|
+
declare const onLoyaltyImportCreated$1: EventDefinition<LoyaltyImportCreatedEnvelope, "wix.loyalty.imports.v1.loyalty_import_created">;
|
|
76
|
+
|
|
77
|
+
declare const createLoyaltyImport: MaybeContext<BuildRESTFunction<typeof createLoyaltyImport$1> & typeof createLoyaltyImport$1>;
|
|
78
|
+
declare const getLoyaltyImport: MaybeContext<BuildRESTFunction<typeof getLoyaltyImport$1> & typeof getLoyaltyImport$1>;
|
|
79
|
+
declare const getErrorFileDownloadUrl: MaybeContext<BuildRESTFunction<typeof getErrorFileDownloadUrl$1> & typeof getErrorFileDownloadUrl$1>;
|
|
80
|
+
declare const executeLoyaltyImport: MaybeContext<BuildRESTFunction<typeof executeLoyaltyImport$1> & typeof executeLoyaltyImport$1>;
|
|
81
|
+
declare const createLoyaltyImportFileUrl: MaybeContext<BuildRESTFunction<typeof createLoyaltyImportFileUrl$1> & typeof createLoyaltyImportFileUrl$1>;
|
|
82
|
+
declare const queryLoyaltyImports: MaybeContext<BuildRESTFunction<typeof queryLoyaltyImports$1> & typeof queryLoyaltyImports$1>;
|
|
83
|
+
/**
|
|
84
|
+
* Triggered when a loyalty import is created.
|
|
85
|
+
*/
|
|
86
|
+
declare const onLoyaltyImportCreated: BuildEventDefinition<typeof onLoyaltyImportCreated$1>;
|
|
87
|
+
|
|
88
|
+
export { CreateLoyaltyImportFileUrlResponse, CreateLoyaltyImportOptions, CreateLoyaltyImportResponse, ExecuteLoyaltyImportOptions, ExecuteLoyaltyImportResponse, GetErrorFileDownloadUrlResponse, LoyaltyImport, LoyaltyImportCreatedEnvelope, LoyaltyImportsQueryBuilder, createLoyaltyImport, createLoyaltyImportFileUrl, executeLoyaltyImport, getErrorFileDownloadUrl, getLoyaltyImport, onLoyaltyImportCreated, queryLoyaltyImports };
|
package/build/cjs/index.js
CHANGED
|
@@ -1,18 +1,539 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
9
|
};
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
ColumnName: () => ColumnName,
|
|
24
|
+
ImportStatus: () => ImportStatus,
|
|
25
|
+
SortOrder: () => SortOrder,
|
|
26
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
27
|
+
createLoyaltyImport: () => createLoyaltyImport4,
|
|
28
|
+
createLoyaltyImportFileUrl: () => createLoyaltyImportFileUrl4,
|
|
29
|
+
executeLoyaltyImport: () => executeLoyaltyImport4,
|
|
30
|
+
getErrorFileDownloadUrl: () => getErrorFileDownloadUrl4,
|
|
31
|
+
getLoyaltyImport: () => getLoyaltyImport4,
|
|
32
|
+
onLoyaltyImportCreated: () => onLoyaltyImportCreated2,
|
|
33
|
+
queryLoyaltyImports: () => queryLoyaltyImports4
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
|
|
37
|
+
// src/loyalty-imports-v1-loyalty-import-imports.public.ts
|
|
38
|
+
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
39
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
40
|
+
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
41
|
+
var import_sdk_types = require("@wix/sdk-types");
|
|
42
|
+
|
|
43
|
+
// src/loyalty-imports-v1-loyalty-import-imports.universal.ts
|
|
44
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
45
|
+
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
46
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
47
|
+
|
|
48
|
+
// src/loyalty-imports-v1-loyalty-import-imports.http.ts
|
|
49
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
50
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
51
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
52
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
53
|
+
function resolveWixLoyaltyImportsV1LoyaltyImportsUrl(opts) {
|
|
54
|
+
const domainToMappings = {
|
|
55
|
+
"manage._base_domain_": [
|
|
56
|
+
{
|
|
57
|
+
srcPath: "/loyalty-imports",
|
|
58
|
+
destPath: ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
srcPath: "/_api/loyalty-imports",
|
|
62
|
+
destPath: "/api"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"bo._base_domain_": [
|
|
66
|
+
{
|
|
67
|
+
srcPath: "/loyalty-imports",
|
|
68
|
+
destPath: ""
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"wixbo.ai": [
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/loyalty-imports",
|
|
74
|
+
destPath: ""
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"wix-bo.com": [
|
|
78
|
+
{
|
|
79
|
+
srcPath: "/loyalty-imports",
|
|
80
|
+
destPath: ""
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"api._api_base_domain_": [
|
|
84
|
+
{
|
|
85
|
+
srcPath: "/loyalty-imports",
|
|
86
|
+
destPath: ""
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"www.wixapis.com": [
|
|
90
|
+
{
|
|
91
|
+
srcPath: "/_api/loyalty-imports",
|
|
92
|
+
destPath: ""
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
};
|
|
96
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
97
|
+
}
|
|
98
|
+
var PACKAGE_NAME = "@wix/auto_sdk_loyalty_imports";
|
|
99
|
+
function createLoyaltyImport(payload) {
|
|
100
|
+
function __createLoyaltyImport({ host }) {
|
|
101
|
+
const metadata = {
|
|
102
|
+
entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
|
|
103
|
+
method: "POST",
|
|
104
|
+
methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImport",
|
|
105
|
+
packageName: PACKAGE_NAME,
|
|
106
|
+
url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
|
|
107
|
+
protoPath: "/v1/loyalty-imports",
|
|
108
|
+
data: payload,
|
|
109
|
+
host
|
|
110
|
+
}),
|
|
111
|
+
data: payload,
|
|
112
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
113
|
+
{
|
|
114
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
115
|
+
paths: [
|
|
116
|
+
{ path: "loyaltyImport.createdDate" },
|
|
117
|
+
{ path: "loyaltyImport.updatedDate" }
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
])
|
|
121
|
+
};
|
|
122
|
+
return metadata;
|
|
123
|
+
}
|
|
124
|
+
return __createLoyaltyImport;
|
|
125
|
+
}
|
|
126
|
+
function getLoyaltyImport(payload) {
|
|
127
|
+
function __getLoyaltyImport({ host }) {
|
|
128
|
+
const metadata = {
|
|
129
|
+
entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
|
|
130
|
+
method: "GET",
|
|
131
|
+
methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.GetLoyaltyImport",
|
|
132
|
+
packageName: PACKAGE_NAME,
|
|
133
|
+
url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
|
|
134
|
+
protoPath: "/v1/loyalty-imports",
|
|
135
|
+
data: payload,
|
|
136
|
+
host
|
|
137
|
+
}),
|
|
138
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
139
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
140
|
+
{
|
|
141
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
142
|
+
paths: [
|
|
143
|
+
{ path: "loyaltyImport.createdDate" },
|
|
144
|
+
{ path: "loyaltyImport.updatedDate" }
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
])
|
|
148
|
+
};
|
|
149
|
+
return metadata;
|
|
150
|
+
}
|
|
151
|
+
return __getLoyaltyImport;
|
|
152
|
+
}
|
|
153
|
+
function getErrorFileDownloadUrl(payload) {
|
|
154
|
+
function __getErrorFileDownloadUrl({ host }) {
|
|
155
|
+
const metadata = {
|
|
156
|
+
entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
|
|
157
|
+
method: "GET",
|
|
158
|
+
methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.GetErrorFileDownloadUrl",
|
|
159
|
+
packageName: PACKAGE_NAME,
|
|
160
|
+
url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
|
|
161
|
+
protoPath: "/v1/loyalty-imports/error-file-download-url",
|
|
162
|
+
data: payload,
|
|
163
|
+
host
|
|
164
|
+
}),
|
|
165
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
166
|
+
};
|
|
167
|
+
return metadata;
|
|
168
|
+
}
|
|
169
|
+
return __getErrorFileDownloadUrl;
|
|
170
|
+
}
|
|
171
|
+
function executeLoyaltyImport(payload) {
|
|
172
|
+
function __executeLoyaltyImport({ host }) {
|
|
173
|
+
const metadata = {
|
|
174
|
+
entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
|
|
175
|
+
method: "POST",
|
|
176
|
+
methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.ExecuteLoyaltyImport",
|
|
177
|
+
packageName: PACKAGE_NAME,
|
|
178
|
+
url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
|
|
179
|
+
protoPath: "/v1/loyalty-imports/execute",
|
|
180
|
+
data: payload,
|
|
181
|
+
host
|
|
182
|
+
}),
|
|
183
|
+
data: payload,
|
|
184
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
185
|
+
{
|
|
186
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
187
|
+
paths: [
|
|
188
|
+
{ path: "loyaltyImport.createdDate" },
|
|
189
|
+
{ path: "loyaltyImport.updatedDate" }
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
])
|
|
193
|
+
};
|
|
194
|
+
return metadata;
|
|
195
|
+
}
|
|
196
|
+
return __executeLoyaltyImport;
|
|
197
|
+
}
|
|
198
|
+
function createLoyaltyImportFileUrl(payload) {
|
|
199
|
+
function __createLoyaltyImportFileUrl({ host }) {
|
|
200
|
+
const metadata = {
|
|
201
|
+
entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
|
|
202
|
+
method: "POST",
|
|
203
|
+
methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.CreateLoyaltyImportFileUrl",
|
|
204
|
+
packageName: PACKAGE_NAME,
|
|
205
|
+
url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
|
|
206
|
+
protoPath: "/v1/loyalty-imports/wixmp-upload-url",
|
|
207
|
+
data: payload,
|
|
208
|
+
host
|
|
209
|
+
}),
|
|
210
|
+
data: payload
|
|
211
|
+
};
|
|
212
|
+
return metadata;
|
|
213
|
+
}
|
|
214
|
+
return __createLoyaltyImportFileUrl;
|
|
215
|
+
}
|
|
216
|
+
function queryLoyaltyImports(payload) {
|
|
217
|
+
function __queryLoyaltyImports({ host }) {
|
|
218
|
+
const metadata = {
|
|
219
|
+
entityFqdn: "wix.loyalty.imports.v1.loyalty_import",
|
|
220
|
+
method: "POST",
|
|
221
|
+
methodFqn: "wix.loyalty.imports.v1.LoyaltyImports.QueryLoyaltyImports",
|
|
222
|
+
packageName: PACKAGE_NAME,
|
|
223
|
+
url: resolveWixLoyaltyImportsV1LoyaltyImportsUrl({
|
|
224
|
+
protoPath: "/v1/loyalty-imports/query",
|
|
225
|
+
data: payload,
|
|
226
|
+
host
|
|
227
|
+
}),
|
|
228
|
+
data: payload,
|
|
229
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
230
|
+
{
|
|
231
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
232
|
+
paths: [
|
|
233
|
+
{ path: "loyaltyImports.createdDate" },
|
|
234
|
+
{ path: "loyaltyImports.updatedDate" }
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
])
|
|
238
|
+
};
|
|
239
|
+
return metadata;
|
|
240
|
+
}
|
|
241
|
+
return __queryLoyaltyImports;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// src/loyalty-imports-v1-loyalty-import-imports.universal.ts
|
|
245
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
246
|
+
var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
|
|
247
|
+
ImportStatus2["UNKNOWN"] = "UNKNOWN";
|
|
248
|
+
ImportStatus2["INITIATED"] = "INITIATED";
|
|
249
|
+
ImportStatus2["PARSING"] = "PARSING";
|
|
250
|
+
ImportStatus2["PARSED"] = "PARSED";
|
|
251
|
+
ImportStatus2["IMPORTING"] = "IMPORTING";
|
|
252
|
+
ImportStatus2["IMPORTED"] = "IMPORTED";
|
|
253
|
+
ImportStatus2["FAILED"] = "FAILED";
|
|
254
|
+
return ImportStatus2;
|
|
255
|
+
})(ImportStatus || {});
|
|
256
|
+
var ColumnName = /* @__PURE__ */ ((ColumnName2) => {
|
|
257
|
+
ColumnName2["EMAIL"] = "EMAIL";
|
|
258
|
+
ColumnName2["POINTS"] = "POINTS";
|
|
259
|
+
return ColumnName2;
|
|
260
|
+
})(ColumnName || {});
|
|
261
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
262
|
+
SortOrder2["ASC"] = "ASC";
|
|
263
|
+
SortOrder2["DESC"] = "DESC";
|
|
264
|
+
return SortOrder2;
|
|
265
|
+
})(SortOrder || {});
|
|
266
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
267
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
268
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
269
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
270
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
271
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
272
|
+
return WebhookIdentityType2;
|
|
273
|
+
})(WebhookIdentityType || {});
|
|
274
|
+
async function createLoyaltyImport2(fileUrl, options) {
|
|
275
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
276
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
277
|
+
fileUrl,
|
|
278
|
+
fileName: options?.fileName,
|
|
279
|
+
fileSize: options?.fileSize
|
|
280
|
+
});
|
|
281
|
+
const reqOpts = createLoyaltyImport(payload);
|
|
282
|
+
sideEffects?.onSiteCall?.();
|
|
283
|
+
try {
|
|
284
|
+
const result = await httpClient.request(reqOpts);
|
|
285
|
+
sideEffects?.onSuccess?.(result);
|
|
286
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
287
|
+
} catch (err) {
|
|
288
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
289
|
+
err,
|
|
290
|
+
{
|
|
291
|
+
spreadPathsToArguments: {},
|
|
292
|
+
explicitPathsToArguments: {
|
|
293
|
+
fileUrl: "$[0]",
|
|
294
|
+
fileName: "$[1].fileName",
|
|
295
|
+
fileSize: "$[1].fileSize"
|
|
296
|
+
},
|
|
297
|
+
singleArgumentUnchanged: false
|
|
298
|
+
},
|
|
299
|
+
["fileUrl", "options"]
|
|
300
|
+
);
|
|
301
|
+
sideEffects?.onError?.(err);
|
|
302
|
+
throw transformedError;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
async function getLoyaltyImport2(loyaltyImportId) {
|
|
306
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
307
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
308
|
+
loyaltyImportId
|
|
309
|
+
});
|
|
310
|
+
const reqOpts = getLoyaltyImport(payload);
|
|
311
|
+
sideEffects?.onSiteCall?.();
|
|
312
|
+
try {
|
|
313
|
+
const result = await httpClient.request(reqOpts);
|
|
314
|
+
sideEffects?.onSuccess?.(result);
|
|
315
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.loyaltyImport;
|
|
316
|
+
} catch (err) {
|
|
317
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
318
|
+
err,
|
|
319
|
+
{
|
|
320
|
+
spreadPathsToArguments: {},
|
|
321
|
+
explicitPathsToArguments: { loyaltyImportId: "$[0]" },
|
|
322
|
+
singleArgumentUnchanged: false
|
|
323
|
+
},
|
|
324
|
+
["loyaltyImportId"]
|
|
325
|
+
);
|
|
326
|
+
sideEffects?.onError?.(err);
|
|
327
|
+
throw transformedError;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
async function getErrorFileDownloadUrl2(loyaltyImportId) {
|
|
331
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
332
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
333
|
+
loyaltyImportId
|
|
334
|
+
});
|
|
335
|
+
const reqOpts = getErrorFileDownloadUrl(payload);
|
|
336
|
+
sideEffects?.onSiteCall?.();
|
|
337
|
+
try {
|
|
338
|
+
const result = await httpClient.request(reqOpts);
|
|
339
|
+
sideEffects?.onSuccess?.(result);
|
|
340
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
341
|
+
} catch (err) {
|
|
342
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
343
|
+
err,
|
|
344
|
+
{
|
|
345
|
+
spreadPathsToArguments: {},
|
|
346
|
+
explicitPathsToArguments: { loyaltyImportId: "$[0]" },
|
|
347
|
+
singleArgumentUnchanged: false
|
|
348
|
+
},
|
|
349
|
+
["loyaltyImportId"]
|
|
350
|
+
);
|
|
351
|
+
sideEffects?.onError?.(err);
|
|
352
|
+
throw transformedError;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
async function executeLoyaltyImport2(loyaltyImportId, options) {
|
|
356
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
357
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
358
|
+
loyaltyImportId,
|
|
359
|
+
headerMappingInfo: options?.headerMappingInfo
|
|
360
|
+
});
|
|
361
|
+
const reqOpts = executeLoyaltyImport(payload);
|
|
362
|
+
sideEffects?.onSiteCall?.();
|
|
363
|
+
try {
|
|
364
|
+
const result = await httpClient.request(reqOpts);
|
|
365
|
+
sideEffects?.onSuccess?.(result);
|
|
366
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
367
|
+
} catch (err) {
|
|
368
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
369
|
+
err,
|
|
370
|
+
{
|
|
371
|
+
spreadPathsToArguments: {},
|
|
372
|
+
explicitPathsToArguments: {
|
|
373
|
+
loyaltyImportId: "$[0]",
|
|
374
|
+
headerMappingInfo: "$[1].headerMappingInfo"
|
|
375
|
+
},
|
|
376
|
+
singleArgumentUnchanged: false
|
|
377
|
+
},
|
|
378
|
+
["loyaltyImportId", "options"]
|
|
379
|
+
);
|
|
380
|
+
sideEffects?.onError?.(err);
|
|
381
|
+
throw transformedError;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
async function createLoyaltyImportFileUrl2() {
|
|
385
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
386
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
387
|
+
const reqOpts = createLoyaltyImportFileUrl(
|
|
388
|
+
payload
|
|
389
|
+
);
|
|
390
|
+
sideEffects?.onSiteCall?.();
|
|
391
|
+
try {
|
|
392
|
+
const result = await httpClient.request(reqOpts);
|
|
393
|
+
sideEffects?.onSuccess?.(result);
|
|
394
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
395
|
+
} catch (err) {
|
|
396
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
397
|
+
err,
|
|
398
|
+
{
|
|
399
|
+
spreadPathsToArguments: {},
|
|
400
|
+
explicitPathsToArguments: {},
|
|
401
|
+
singleArgumentUnchanged: false
|
|
402
|
+
},
|
|
403
|
+
[]
|
|
404
|
+
);
|
|
405
|
+
sideEffects?.onError?.(err);
|
|
406
|
+
throw transformedError;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
function queryLoyaltyImports2() {
|
|
410
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
411
|
+
return (0, import_query_builder.queryBuilder)({
|
|
412
|
+
func: async (payload) => {
|
|
413
|
+
const reqOpts = queryLoyaltyImports(payload);
|
|
414
|
+
sideEffects?.onSiteCall?.();
|
|
415
|
+
try {
|
|
416
|
+
const result = await httpClient.request(reqOpts);
|
|
417
|
+
sideEffects?.onSuccess?.(result);
|
|
418
|
+
return result;
|
|
419
|
+
} catch (err) {
|
|
420
|
+
sideEffects?.onError?.(err);
|
|
421
|
+
throw err;
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
requestTransformer: (query) => {
|
|
425
|
+
const args = [query, {}];
|
|
426
|
+
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
427
|
+
...args?.[1],
|
|
428
|
+
query: args?.[0]
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
responseTransformer: ({
|
|
432
|
+
data
|
|
433
|
+
}) => {
|
|
434
|
+
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
435
|
+
(0, import_transform_paths2.transformPaths)(data, [])
|
|
436
|
+
);
|
|
437
|
+
return {
|
|
438
|
+
items: transformedData?.loyaltyImports,
|
|
439
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
440
|
+
};
|
|
441
|
+
},
|
|
442
|
+
errorTransformer: (err) => {
|
|
443
|
+
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
444
|
+
spreadPathsToArguments: {},
|
|
445
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
446
|
+
singleArgumentUnchanged: false
|
|
447
|
+
});
|
|
448
|
+
throw transformedError;
|
|
449
|
+
},
|
|
450
|
+
pagingMethod: "CURSOR",
|
|
451
|
+
transformationPaths: {}
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// src/loyalty-imports-v1-loyalty-import-imports.public.ts
|
|
456
|
+
function createLoyaltyImport3(httpClient) {
|
|
457
|
+
return (fileUrl, options) => createLoyaltyImport2(
|
|
458
|
+
fileUrl,
|
|
459
|
+
options,
|
|
460
|
+
// @ts-ignore
|
|
461
|
+
{ httpClient }
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
function getLoyaltyImport3(httpClient) {
|
|
465
|
+
return (loyaltyImportId) => getLoyaltyImport2(
|
|
466
|
+
loyaltyImportId,
|
|
467
|
+
// @ts-ignore
|
|
468
|
+
{ httpClient }
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
function getErrorFileDownloadUrl3(httpClient) {
|
|
472
|
+
return (loyaltyImportId) => getErrorFileDownloadUrl2(
|
|
473
|
+
loyaltyImportId,
|
|
474
|
+
// @ts-ignore
|
|
475
|
+
{ httpClient }
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
function executeLoyaltyImport3(httpClient) {
|
|
479
|
+
return (loyaltyImportId, options) => executeLoyaltyImport2(
|
|
480
|
+
loyaltyImportId,
|
|
481
|
+
options,
|
|
482
|
+
// @ts-ignore
|
|
483
|
+
{ httpClient }
|
|
484
|
+
);
|
|
485
|
+
}
|
|
486
|
+
function createLoyaltyImportFileUrl3(httpClient) {
|
|
487
|
+
return () => createLoyaltyImportFileUrl2(
|
|
488
|
+
// @ts-ignore
|
|
489
|
+
{ httpClient }
|
|
490
|
+
);
|
|
491
|
+
}
|
|
492
|
+
function queryLoyaltyImports3(httpClient) {
|
|
493
|
+
return () => queryLoyaltyImports2(
|
|
494
|
+
// @ts-ignore
|
|
495
|
+
{ httpClient }
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
var onLoyaltyImportCreated = (0, import_sdk_types.EventDefinition)(
|
|
499
|
+
"wix.loyalty.imports.v1.loyalty_import_created",
|
|
500
|
+
true,
|
|
501
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
502
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
503
|
+
{
|
|
504
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
505
|
+
paths: [
|
|
506
|
+
{ path: "entity.createdDate" },
|
|
507
|
+
{ path: "entity.updatedDate" },
|
|
508
|
+
{ path: "metadata.eventTime" }
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
])
|
|
512
|
+
)
|
|
513
|
+
)();
|
|
514
|
+
|
|
515
|
+
// src/loyalty-imports-v1-loyalty-import-imports.context.ts
|
|
516
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
517
|
+
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
518
|
+
var createLoyaltyImport4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createLoyaltyImport3);
|
|
519
|
+
var getLoyaltyImport4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getLoyaltyImport3);
|
|
520
|
+
var getErrorFileDownloadUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getErrorFileDownloadUrl3);
|
|
521
|
+
var executeLoyaltyImport4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(executeLoyaltyImport3);
|
|
522
|
+
var createLoyaltyImportFileUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createLoyaltyImportFileUrl3);
|
|
523
|
+
var queryLoyaltyImports4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryLoyaltyImports3);
|
|
524
|
+
var onLoyaltyImportCreated2 = (0, import_event_definition_modules.createEventModule)(onLoyaltyImportCreated);
|
|
525
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
526
|
+
0 && (module.exports = {
|
|
527
|
+
ColumnName,
|
|
528
|
+
ImportStatus,
|
|
529
|
+
SortOrder,
|
|
530
|
+
WebhookIdentityType,
|
|
531
|
+
createLoyaltyImport,
|
|
532
|
+
createLoyaltyImportFileUrl,
|
|
533
|
+
executeLoyaltyImport,
|
|
534
|
+
getErrorFileDownloadUrl,
|
|
535
|
+
getLoyaltyImport,
|
|
536
|
+
onLoyaltyImportCreated,
|
|
537
|
+
queryLoyaltyImports
|
|
538
|
+
});
|
|
18
539
|
//# sourceMappingURL=index.js.map
|