@wix/auto_sdk_loyalty_rewards 1.0.2 → 1.0.4
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/index.d.mts +126 -0
- package/build/index.d.ts +126 -0
- package/build/index.js +834 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +797 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +126 -0
- package/build/internal/index.d.ts +126 -0
- package/build/internal/index.js +834 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +797 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/loyalty-v1-reward-rewards.types.d.ts → internal/loyalty-v1-reward-rewards.universal-DJFLdOGr.d.mts} +186 -177
- package/build/{cjs/src/loyalty-v1-reward-rewards.types.d.ts → internal/loyalty-v1-reward-rewards.universal-DJFLdOGr.d.ts} +186 -177
- package/build/internal/meta.d.mts +472 -0
- package/build/internal/meta.d.ts +472 -0
- package/build/internal/meta.js +597 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +563 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{internal/cjs/src/loyalty-v1-reward-rewards.types.d.ts → loyalty-v1-reward-rewards.universal-DJFLdOGr.d.mts} +186 -177
- package/build/{internal/es/src/loyalty-v1-reward-rewards.types.d.ts → loyalty-v1-reward-rewards.universal-DJFLdOGr.d.ts} +186 -177
- package/build/meta.d.mts +472 -0
- package/build/meta.d.ts +472 -0
- package/build/meta.js +597 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +563 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +14 -13
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- 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/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/cjs/src/loyalty-v1-reward-rewards.context.js +0 -34
- package/build/cjs/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/cjs/src/loyalty-v1-reward-rewards.http.js +0 -464
- package/build/cjs/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/cjs/src/loyalty-v1-reward-rewards.meta.js +0 -180
- package/build/cjs/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/cjs/src/loyalty-v1-reward-rewards.public.js +0 -119
- package/build/cjs/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.types.js +0 -29
- package/build/cjs/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/cjs/src/loyalty-v1-reward-rewards.universal.d.ts +0 -1007
- package/build/cjs/src/loyalty-v1-reward-rewards.universal.js +0 -373
- package/build/cjs/src/loyalty-v1-reward-rewards.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/package.json +0 -3
- package/build/es/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/es/src/loyalty-v1-reward-rewards.context.js +0 -28
- package/build/es/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/es/src/loyalty-v1-reward-rewards.http.js +0 -453
- package/build/es/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/es/src/loyalty-v1-reward-rewards.meta.js +0 -146
- package/build/es/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/es/src/loyalty-v1-reward-rewards.public.js +0 -105
- package/build/es/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.types.js +0 -26
- package/build/es/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/es/src/loyalty-v1-reward-rewards.universal.d.ts +0 -1007
- package/build/es/src/loyalty-v1-reward-rewards.universal.js +0 -339
- package/build/es/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.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/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.d.ts +0 -28
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.js +0 -34
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.js +0 -464
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.js +0 -180
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.js +0 -119
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.types.js +0 -29
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.d.ts +0 -1007
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.universal.js +0 -373
- package/build/internal/cjs/src/loyalty-v1-reward-rewards.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-v1-reward-rewards.context.d.ts +0 -28
- package/build/internal/es/src/loyalty-v1-reward-rewards.context.js +0 -28
- package/build/internal/es/src/loyalty-v1-reward-rewards.context.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.http.d.ts +0 -56
- package/build/internal/es/src/loyalty-v1-reward-rewards.http.js +0 -453
- package/build/internal/es/src/loyalty-v1-reward-rewards.http.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.meta.d.ts +0 -26
- package/build/internal/es/src/loyalty-v1-reward-rewards.meta.js +0 -146
- package/build/internal/es/src/loyalty-v1-reward-rewards.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.public.d.ts +0 -107
- package/build/internal/es/src/loyalty-v1-reward-rewards.public.js +0 -105
- package/build/internal/es/src/loyalty-v1-reward-rewards.public.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.types.js +0 -26
- package/build/internal/es/src/loyalty-v1-reward-rewards.types.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-reward-rewards.universal.d.ts +0 -1007
- package/build/internal/es/src/loyalty-v1-reward-rewards.universal.js +0 -339
- package/build/internal/es/src/loyalty-v1-reward-rewards.universal.js.map +0 -1
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.listRewards = exports.deleteReward = exports.updateReward = exports.queryRewards = exports.bulkGetRewards = exports.getReward = exports.bulkCreateRewards = exports.createReward = void 0;
|
|
27
|
-
const ambassadorWixLoyaltyV1Reward = __importStar(require("./loyalty-v1-reward-rewards.http.js"));
|
|
28
|
-
function createReward() {
|
|
29
|
-
const payload = {};
|
|
30
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.createReward(payload);
|
|
31
|
-
const getUrl = (context) => {
|
|
32
|
-
const { url } = getRequestOptions(context);
|
|
33
|
-
return url;
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
getUrl,
|
|
37
|
-
httpMethod: 'POST',
|
|
38
|
-
path: '/v1/rewards',
|
|
39
|
-
pathParams: {},
|
|
40
|
-
__requestType: null,
|
|
41
|
-
__originalRequestType: null,
|
|
42
|
-
__responseType: null,
|
|
43
|
-
__originalResponseType: null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.createReward = createReward;
|
|
47
|
-
function bulkCreateRewards() {
|
|
48
|
-
const payload = {};
|
|
49
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.bulkCreateRewards(payload);
|
|
50
|
-
const getUrl = (context) => {
|
|
51
|
-
const { url } = getRequestOptions(context);
|
|
52
|
-
return url;
|
|
53
|
-
};
|
|
54
|
-
return {
|
|
55
|
-
getUrl,
|
|
56
|
-
httpMethod: 'POST',
|
|
57
|
-
path: '/v1/bulk/rewards/create',
|
|
58
|
-
pathParams: {},
|
|
59
|
-
__requestType: null,
|
|
60
|
-
__originalRequestType: null,
|
|
61
|
-
__responseType: null,
|
|
62
|
-
__originalResponseType: null,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.bulkCreateRewards = bulkCreateRewards;
|
|
66
|
-
function getReward() {
|
|
67
|
-
const payload = { id: ':id' };
|
|
68
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.getReward(payload);
|
|
69
|
-
const getUrl = (context) => {
|
|
70
|
-
const { url } = getRequestOptions(context);
|
|
71
|
-
return url;
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
getUrl,
|
|
75
|
-
httpMethod: 'GET',
|
|
76
|
-
path: '/v1/rewards/{id}',
|
|
77
|
-
pathParams: { id: 'id' },
|
|
78
|
-
__requestType: null,
|
|
79
|
-
__originalRequestType: null,
|
|
80
|
-
__responseType: null,
|
|
81
|
-
__originalResponseType: null,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
exports.getReward = getReward;
|
|
85
|
-
function bulkGetRewards() {
|
|
86
|
-
const payload = {};
|
|
87
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.bulkGetRewards(payload);
|
|
88
|
-
const getUrl = (context) => {
|
|
89
|
-
const { url } = getRequestOptions(context);
|
|
90
|
-
return url;
|
|
91
|
-
};
|
|
92
|
-
return {
|
|
93
|
-
getUrl,
|
|
94
|
-
httpMethod: 'GET',
|
|
95
|
-
path: '/v1/bulk/rewards',
|
|
96
|
-
pathParams: {},
|
|
97
|
-
__requestType: null,
|
|
98
|
-
__originalRequestType: null,
|
|
99
|
-
__responseType: null,
|
|
100
|
-
__originalResponseType: null,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
exports.bulkGetRewards = bulkGetRewards;
|
|
104
|
-
function queryRewards() {
|
|
105
|
-
const payload = {};
|
|
106
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.queryRewards(payload);
|
|
107
|
-
const getUrl = (context) => {
|
|
108
|
-
const { url } = getRequestOptions(context);
|
|
109
|
-
return url;
|
|
110
|
-
};
|
|
111
|
-
return {
|
|
112
|
-
getUrl,
|
|
113
|
-
httpMethod: 'POST',
|
|
114
|
-
path: '/v1/rewards/query',
|
|
115
|
-
pathParams: {},
|
|
116
|
-
__requestType: null,
|
|
117
|
-
__originalRequestType: null,
|
|
118
|
-
__responseType: null,
|
|
119
|
-
__originalResponseType: null,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
exports.queryRewards = queryRewards;
|
|
123
|
-
function updateReward() {
|
|
124
|
-
const payload = { reward: { id: ':rewardId' } };
|
|
125
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.updateReward(payload);
|
|
126
|
-
const getUrl = (context) => {
|
|
127
|
-
const { url } = getRequestOptions(context);
|
|
128
|
-
return url;
|
|
129
|
-
};
|
|
130
|
-
return {
|
|
131
|
-
getUrl,
|
|
132
|
-
httpMethod: 'PUT',
|
|
133
|
-
path: '/v1/rewards/{reward.id}',
|
|
134
|
-
pathParams: { rewardId: 'rewardId' },
|
|
135
|
-
__requestType: null,
|
|
136
|
-
__originalRequestType: null,
|
|
137
|
-
__responseType: null,
|
|
138
|
-
__originalResponseType: null,
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
exports.updateReward = updateReward;
|
|
142
|
-
function deleteReward() {
|
|
143
|
-
const payload = { id: ':id' };
|
|
144
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.deleteReward(payload);
|
|
145
|
-
const getUrl = (context) => {
|
|
146
|
-
const { url } = getRequestOptions(context);
|
|
147
|
-
return url;
|
|
148
|
-
};
|
|
149
|
-
return {
|
|
150
|
-
getUrl,
|
|
151
|
-
httpMethod: 'DELETE',
|
|
152
|
-
path: '/v1/rewards/{id}',
|
|
153
|
-
pathParams: { id: 'id' },
|
|
154
|
-
__requestType: null,
|
|
155
|
-
__originalRequestType: null,
|
|
156
|
-
__responseType: null,
|
|
157
|
-
__originalResponseType: null,
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
exports.deleteReward = deleteReward;
|
|
161
|
-
function listRewards() {
|
|
162
|
-
const payload = {};
|
|
163
|
-
const getRequestOptions = ambassadorWixLoyaltyV1Reward.listRewards(payload);
|
|
164
|
-
const getUrl = (context) => {
|
|
165
|
-
const { url } = getRequestOptions(context);
|
|
166
|
-
return url;
|
|
167
|
-
};
|
|
168
|
-
return {
|
|
169
|
-
getUrl,
|
|
170
|
-
httpMethod: 'GET',
|
|
171
|
-
path: '/v1/rewards',
|
|
172
|
-
pathParams: {},
|
|
173
|
-
__requestType: null,
|
|
174
|
-
__originalRequestType: null,
|
|
175
|
-
__responseType: null,
|
|
176
|
-
__originalResponseType: null,
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
exports.listRewards = listRewards;
|
|
180
|
-
//# sourceMappingURL=loyalty-v1-reward-rewards.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-reward-rewards.meta.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-reward-rewards.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kGAAoF;AAsBpF,SAAgB,YAAY;IAU1B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,4BAA4B,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAE7E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA7BD,oCA6BC;AAED,SAAgB,iBAAiB;IAU/B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4BAA4B,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE1D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACp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QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACxB,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,oCA2BC;AAED,SAAgB,WAAW;IAUzB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,4BAA4B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAE5E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA7BD,kCA6BC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { BulkCreateRewardsResponse, BulkCreateRewardsResponseNonNullableFields, BulkGetRewardsResponse, BulkGetRewardsResponseNonNullableFields, CursorQuery, ListRewardsOptions, ListRewardsResponse, ListRewardsResponseNonNullableFields, QueryRewardsResponse, QueryRewardsResponseNonNullableFields, Reward, RewardCreatedEnvelope, RewardDeletedEnvelope, RewardNonNullableFields, RewardUpdatedEnvelope, UpdateReward, UpdateRewardResponse, UpdateRewardResponseNonNullableFields } from './loyalty-v1-reward-rewards.universal.js';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function createReward(httpClient: HttpClient): CreateRewardSignature;
|
|
7
|
-
interface CreateRewardSignature {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a reward that can be redeemed with loyalty points.
|
|
10
|
-
*
|
|
11
|
-
* When a customer redeems a reward, a loyalty coupon is created
|
|
12
|
-
* based on the specifications detailed in either the `discountAmount` or `couponReward` fields. This coupon can
|
|
13
|
-
* then be used by the customer to receive the discount. Note that while the Rewards API uses coupon scopes and specifications,
|
|
14
|
-
* no coupon is actually created until a reward is redeemed with points.
|
|
15
|
-
* See the Coupons API for more information about coupons.
|
|
16
|
-
*
|
|
17
|
-
* A reward's `active` status defaults to `false`. To make the reward available to customers,
|
|
18
|
-
* either set the `active` field to `true` during creation or call [`updateReward()`](#updatereward)
|
|
19
|
-
* to change the status.
|
|
20
|
-
*
|
|
21
|
-
* To customize a reward for each loyalty tier, use the `configsByTier` parameter.
|
|
22
|
-
* This allows you to specify the amount of the earned discount, the cost in loyalty points
|
|
23
|
-
* to redeem the reward, and the tier to which this configuration applies. Each tier requires its own
|
|
24
|
-
* `configsByTier` configuration. To create a reward that is available to loyalty accounts in the base tier,
|
|
25
|
-
* leave the `tierId` field empty. See the Loyalty Tiers API for more information on tiers.
|
|
26
|
-
* @param - Reward to create.
|
|
27
|
-
* @returns Created reward.
|
|
28
|
-
*/
|
|
29
|
-
(reward: Reward): Promise<Reward & RewardNonNullableFields>;
|
|
30
|
-
}
|
|
31
|
-
export declare function bulkCreateRewards(httpClient: HttpClient): BulkCreateRewardsSignature;
|
|
32
|
-
interface BulkCreateRewardsSignature {
|
|
33
|
-
/**
|
|
34
|
-
* Creates multiple rewards.
|
|
35
|
-
* @param - Rewards to create.
|
|
36
|
-
*/
|
|
37
|
-
(rewards: Reward[]): Promise<BulkCreateRewardsResponse & BulkCreateRewardsResponseNonNullableFields>;
|
|
38
|
-
}
|
|
39
|
-
export declare function getReward(httpClient: HttpClient): GetRewardSignature;
|
|
40
|
-
interface GetRewardSignature {
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves a reward.
|
|
43
|
-
* @param - ID of the reward to retrieve.
|
|
44
|
-
* @returns Retrieved reward.
|
|
45
|
-
*/
|
|
46
|
-
(_id: string): Promise<Reward & RewardNonNullableFields>;
|
|
47
|
-
}
|
|
48
|
-
export declare function bulkGetRewards(httpClient: HttpClient): BulkGetRewardsSignature;
|
|
49
|
-
interface BulkGetRewardsSignature {
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves rewards from all metasites that the caller is the member of.
|
|
52
|
-
*
|
|
53
|
-
* Must be called with user identity.
|
|
54
|
-
*/
|
|
55
|
-
(): Promise<BulkGetRewardsResponse & BulkGetRewardsResponseNonNullableFields>;
|
|
56
|
-
}
|
|
57
|
-
export declare function queryRewards(httpClient: HttpClient): QueryRewardsSignature;
|
|
58
|
-
interface QueryRewardsSignature {
|
|
59
|
-
/**
|
|
60
|
-
* Retrieves a list of rewards, given the provided paging, filtering, and sorting.
|
|
61
|
-
*
|
|
62
|
-
* Query Rewards runs with these defaults, which you can override: `cursorPaging.limit` is `50`.
|
|
63
|
-
*
|
|
64
|
-
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),[Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
65
|
-
* @param - Query parameters.
|
|
66
|
-
*/
|
|
67
|
-
(query: CursorQuery): Promise<QueryRewardsResponse & QueryRewardsResponseNonNullableFields>;
|
|
68
|
-
}
|
|
69
|
-
export declare function updateReward(httpClient: HttpClient): UpdateRewardSignature;
|
|
70
|
-
interface UpdateRewardSignature {
|
|
71
|
-
/**
|
|
72
|
-
* Updates a loyalty reward.
|
|
73
|
-
*
|
|
74
|
-
* Use this endpoint to update details of a reward, such as the name, whether or not a reward is active,
|
|
75
|
-
* or the amount of points it costs to redeem. Also use this endpoint to add new tiers that are eligible to redeem a reward.
|
|
76
|
-
*
|
|
77
|
-
* You may not change the `type` of a reward. That is set upon creation and cannot be updated.
|
|
78
|
-
* @param - Reward ID.
|
|
79
|
-
* @param - Reward info to update.
|
|
80
|
-
*/
|
|
81
|
-
(_id: string | null, reward: UpdateReward): Promise<UpdateRewardResponse & UpdateRewardResponseNonNullableFields>;
|
|
82
|
-
}
|
|
83
|
-
export declare function deleteReward(httpClient: HttpClient): DeleteRewardSignature;
|
|
84
|
-
interface DeleteRewardSignature {
|
|
85
|
-
/**
|
|
86
|
-
* Deletes a reward.
|
|
87
|
-
* @param - ID of the reward to delete.
|
|
88
|
-
* @param - Revision number, which increments by 1 each time the reward is updated.
|
|
89
|
-
*
|
|
90
|
-
* To prevent conflicting changes, the current `revision` must be passed when deleting the reward.
|
|
91
|
-
*/
|
|
92
|
-
(_id: string, revision: string): Promise<void>;
|
|
93
|
-
}
|
|
94
|
-
export declare function listRewards(httpClient: HttpClient): ListRewardsSignature;
|
|
95
|
-
interface ListRewardsSignature {
|
|
96
|
-
/**
|
|
97
|
-
* Retrieves a list of rewards.
|
|
98
|
-
*
|
|
99
|
-
* The list includes rewards that are currently nonredeemable due to insufficient points held by any customers.
|
|
100
|
-
* @param - List options.
|
|
101
|
-
*/
|
|
102
|
-
(options?: ListRewardsOptions | undefined): Promise<ListRewardsResponse & ListRewardsResponseNonNullableFields>;
|
|
103
|
-
}
|
|
104
|
-
export declare const onRewardCreated: EventDefinition<RewardCreatedEnvelope, "wix.loyalty.v1.reward_created">;
|
|
105
|
-
export declare const onRewardDeleted: EventDefinition<RewardDeletedEnvelope, "wix.loyalty.v1.reward_deleted">;
|
|
106
|
-
export declare const onRewardUpdated: EventDefinition<RewardUpdatedEnvelope, "wix.loyalty.v1.reward_updated">;
|
|
107
|
-
export { ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateRewardsRequest, BulkCreateRewardsResponse, BulkCreateRewardsResponseNonNullableFields, BulkGetRewardsRequest, BulkGetRewardsResponse, BulkGetRewardsResponseNonNullableFields, BulkRewardResult, CouponReward, CouponRewardDiscountTypeOneOf, CouponRewardScopeOrMinSubtotalOneOf, CouponScope, CreateRewardRequest, CreateRewardResponse, CreateRewardResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteRewardRequest, DeleteRewardResponse, DiscountAmount, DiscountAmountConfig, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmountDiscount, FixedAmountDiscountConfig, FreeShippingDiscount, FreeShippingDiscountConfig, GetRewardRequest, GetRewardResponse, GetRewardResponseNonNullableFields, Group, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListRewardsInTierRequest, ListRewardsInTierResponse, ListRewardsOptions, ListRewardsRequest, ListRewardsResponse, ListRewardsResponseNonNullableFields, MessageEnvelope, PagingMetadataV2, PercentageDiscount, PercentageDiscountConfig, QueryRewardsRequest, QueryRewardsResponse, QueryRewardsResponseNonNullableFields, RestoreInfo, Reward, RewardCreatedEnvelope, RewardDeletedEnvelope, RewardDisabled, RewardNonNullableFields, RewardType, RewardTypeDetailsOneOf, RewardUpdatedEnvelope, RewardsInSite, SortOrder, Sorting, SpiDiscountAmount, UpdateReward, UpdateRewardRequest, UpdateRewardResponse, UpdateRewardResponseNonNullableFields, WebhookIdentityType, } from './loyalty-v1-reward-rewards.universal.js';
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.SortOrder = exports.RewardType = exports.onRewardUpdated = exports.onRewardDeleted = exports.onRewardCreated = exports.listRewards = exports.deleteReward = exports.updateReward = exports.queryRewards = exports.bulkGetRewards = exports.getReward = exports.bulkCreateRewards = exports.createReward = exports.__metadata = void 0;
|
|
4
|
-
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
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 loyalty_v1_reward_rewards_universal_js_1 = require("./loyalty-v1-reward-rewards.universal.js");
|
|
10
|
-
exports.__metadata = { PACKAGE_NAME: '@wix/loyalty' };
|
|
11
|
-
function createReward(httpClient) {
|
|
12
|
-
return (reward) => (0, loyalty_v1_reward_rewards_universal_js_1.createReward)(reward,
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
{ httpClient });
|
|
15
|
-
}
|
|
16
|
-
exports.createReward = createReward;
|
|
17
|
-
function bulkCreateRewards(httpClient) {
|
|
18
|
-
return (rewards) => (0, loyalty_v1_reward_rewards_universal_js_1.bulkCreateRewards)(rewards,
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
{ httpClient });
|
|
21
|
-
}
|
|
22
|
-
exports.bulkCreateRewards = bulkCreateRewards;
|
|
23
|
-
function getReward(httpClient) {
|
|
24
|
-
return (_id) => (0, loyalty_v1_reward_rewards_universal_js_1.getReward)(_id,
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
{ httpClient });
|
|
27
|
-
}
|
|
28
|
-
exports.getReward = getReward;
|
|
29
|
-
function bulkGetRewards(httpClient) {
|
|
30
|
-
return () => (0, loyalty_v1_reward_rewards_universal_js_1.bulkGetRewards)(
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
{ httpClient });
|
|
33
|
-
}
|
|
34
|
-
exports.bulkGetRewards = bulkGetRewards;
|
|
35
|
-
function queryRewards(httpClient) {
|
|
36
|
-
return (query) => (0, loyalty_v1_reward_rewards_universal_js_1.queryRewards)(query,
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
{ httpClient });
|
|
39
|
-
}
|
|
40
|
-
exports.queryRewards = queryRewards;
|
|
41
|
-
function updateReward(httpClient) {
|
|
42
|
-
return (_id, reward) => (0, loyalty_v1_reward_rewards_universal_js_1.updateReward)(_id, reward,
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
{ httpClient });
|
|
45
|
-
}
|
|
46
|
-
exports.updateReward = updateReward;
|
|
47
|
-
function deleteReward(httpClient) {
|
|
48
|
-
return (_id, revision) => (0, loyalty_v1_reward_rewards_universal_js_1.deleteReward)(_id, revision,
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
{ httpClient });
|
|
51
|
-
}
|
|
52
|
-
exports.deleteReward = deleteReward;
|
|
53
|
-
function listRewards(httpClient) {
|
|
54
|
-
return (options) => (0, loyalty_v1_reward_rewards_universal_js_1.listRewards)(options,
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
{ httpClient });
|
|
57
|
-
}
|
|
58
|
-
exports.listRewards = listRewards;
|
|
59
|
-
exports.onRewardCreated = (0, sdk_types_1.EventDefinition)('wix.loyalty.v1.reward_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
60
|
-
{
|
|
61
|
-
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
62
|
-
paths: [
|
|
63
|
-
{ path: 'entity.createdDate' },
|
|
64
|
-
{ path: 'entity.updatedDate' },
|
|
65
|
-
{ path: 'metadata.eventTime' },
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
70
|
-
paths: [
|
|
71
|
-
{ path: 'entity.couponReward.minimumSubtotal' },
|
|
72
|
-
{ path: 'entity.couponReward.fixedAmount.configsByTier.amount' },
|
|
73
|
-
{ path: 'entity.couponReward.percentage.configsByTier.percentage' },
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
])))();
|
|
77
|
-
exports.onRewardDeleted = (0, sdk_types_1.EventDefinition)('wix.loyalty.v1.reward_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
78
|
-
{
|
|
79
|
-
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
80
|
-
paths: [
|
|
81
|
-
{ path: 'undefined.createdDate' },
|
|
82
|
-
{ path: 'undefined.updatedDate' },
|
|
83
|
-
{ path: 'metadata.eventTime' },
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
88
|
-
paths: [
|
|
89
|
-
{ path: 'undefined.couponReward.minimumSubtotal' },
|
|
90
|
-
{ path: 'undefined.couponReward.fixedAmount.configsByTier.amount' },
|
|
91
|
-
{
|
|
92
|
-
path: 'undefined.couponReward.percentage.configsByTier.percentage',
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
])))();
|
|
97
|
-
exports.onRewardUpdated = (0, sdk_types_1.EventDefinition)('wix.loyalty.v1.reward_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
98
|
-
{
|
|
99
|
-
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
100
|
-
paths: [
|
|
101
|
-
{ path: 'entity.createdDate' },
|
|
102
|
-
{ path: 'entity.updatedDate' },
|
|
103
|
-
{ path: 'metadata.eventTime' },
|
|
104
|
-
],
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
108
|
-
paths: [
|
|
109
|
-
{ path: 'entity.couponReward.minimumSubtotal' },
|
|
110
|
-
{ path: 'entity.couponReward.fixedAmount.configsByTier.amount' },
|
|
111
|
-
{ path: 'entity.couponReward.percentage.configsByTier.percentage' },
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
])))();
|
|
115
|
-
var loyalty_v1_reward_rewards_universal_js_2 = require("./loyalty-v1-reward-rewards.universal.js");
|
|
116
|
-
Object.defineProperty(exports, "RewardType", { enumerable: true, get: function () { return loyalty_v1_reward_rewards_universal_js_2.RewardType; } });
|
|
117
|
-
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return loyalty_v1_reward_rewards_universal_js_2.SortOrder; } });
|
|
118
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return loyalty_v1_reward_rewards_universal_js_2.WebhookIdentityType; } });
|
|
119
|
-
//# sourceMappingURL=loyalty-v1-reward-rewards.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-reward-rewards.public.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-reward-rewards.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,qGA2BkD;AAErC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,MAAc,EAAE,EAAE,CACxB,IAAA,qDAAqB,EACnB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AA2BD,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CAAC,OAAiB,EAAE,EAAE,CAC3B,IAAA,0DAA0B,EACxB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,8CASC;AAYD,SAAgB,SAAS,CAAC,UAAsB;IAC9C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,kDAAkB,EAChB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,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E,IAAI,EAAE,yDAAyD,EAAE;SACpE;KACF;CACF,CAAC,CACH,CACJ,EAAyB,CAAC;AAE3B,mGA6EkD;AAZhD,oIAAA,UAAU,OAAA;AAIV,mIAAA,SAAS,OAAA;AAOT,6IAAA,mBAAmB,OAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.SortOrder = exports.RewardType = void 0;
|
|
4
|
-
/** Available reward types. */
|
|
5
|
-
var RewardType;
|
|
6
|
-
(function (RewardType) {
|
|
7
|
-
/** Undefined reward type. */
|
|
8
|
-
RewardType["UNDEFINED"] = "UNDEFINED";
|
|
9
|
-
/** Discount reward. Special flexible reward type used in checkout. */
|
|
10
|
-
RewardType["DISCOUNT_AMOUNT"] = "DISCOUNT_AMOUNT";
|
|
11
|
-
/** Coupon reward. [Learn more about coupons.](https://support.wix.com/en/article/using-coupons-as-loyalty-rewards) */
|
|
12
|
-
RewardType["COUPON_REWARD"] = "COUPON_REWARD";
|
|
13
|
-
/** For internal use. */
|
|
14
|
-
RewardType["SPI_DISCOUNT_AMOUNT"] = "SPI_DISCOUNT_AMOUNT";
|
|
15
|
-
})(RewardType || (exports.RewardType = RewardType = {}));
|
|
16
|
-
var SortOrder;
|
|
17
|
-
(function (SortOrder) {
|
|
18
|
-
SortOrder["ASC"] = "ASC";
|
|
19
|
-
SortOrder["DESC"] = "DESC";
|
|
20
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
21
|
-
var WebhookIdentityType;
|
|
22
|
-
(function (WebhookIdentityType) {
|
|
23
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
24
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
25
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
26
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
27
|
-
WebhookIdentityType["APP"] = "APP";
|
|
28
|
-
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
29
|
-
//# sourceMappingURL=loyalty-v1-reward-rewards.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-reward-rewards.types.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-reward-rewards.types.ts"],"names":[],"mappings":";;;AAoDA,8BAA8B;AAC9B,IAAY,UASX;AATD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,qCAAuB,CAAA;IACvB,sEAAsE;IACtE,iDAAmC,CAAA;IACnC,sHAAsH;IACtH,6CAA+B,CAAA;IAC/B,wBAAwB;IACxB,yDAA2C,CAAA;AAC7C,CAAC,EATW,UAAU,0BAAV,UAAU,QASrB;AA+UD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA4QD,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"}
|