@wix/auto_sdk_pricing-plans_plans 1.0.0
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/pricing-plans-v2-plan-plans.context.d.ts +36 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.context.js +45 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.context.js.map +1 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +62 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.http.js +448 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.http.js.map +1 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +33 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js +237 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +1 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.public.d.ts +130 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.public.js +123 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.public.js.map +1 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.types.d.ts +618 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.types.js +54 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.types.js.map +1 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +1069 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.universal.js +557 -0
- package/build/cjs/src/pricing-plans-v2-plan-plans.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/package.json +3 -0
- package/build/es/src/pricing-plans-v2-plan-plans.context.d.ts +36 -0
- package/build/es/src/pricing-plans-v2-plan-plans.context.js +36 -0
- package/build/es/src/pricing-plans-v2-plan-plans.context.js.map +1 -0
- package/build/es/src/pricing-plans-v2-plan-plans.http.d.ts +62 -0
- package/build/es/src/pricing-plans-v2-plan-plans.http.js +434 -0
- package/build/es/src/pricing-plans-v2-plan-plans.http.js.map +1 -0
- package/build/es/src/pricing-plans-v2-plan-plans.meta.d.ts +33 -0
- package/build/es/src/pricing-plans-v2-plan-plans.meta.js +200 -0
- package/build/es/src/pricing-plans-v2-plan-plans.meta.js.map +1 -0
- package/build/es/src/pricing-plans-v2-plan-plans.public.d.ts +130 -0
- package/build/es/src/pricing-plans-v2-plan-plans.public.js +103 -0
- package/build/es/src/pricing-plans-v2-plan-plans.public.js.map +1 -0
- package/build/es/src/pricing-plans-v2-plan-plans.types.d.ts +618 -0
- package/build/es/src/pricing-plans-v2-plan-plans.types.js +51 -0
- package/build/es/src/pricing-plans-v2-plan-plans.types.js.map +1 -0
- package/build/es/src/pricing-plans-v2-plan-plans.universal.d.ts +1069 -0
- package/build/es/src/pricing-plans-v2-plan-plans.universal.js +520 -0
- package/build/es/src/pricing-plans-v2-plan-plans.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/pricing-plans-v2-plan-plans.context.d.ts +36 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js +45 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.context.js.map +1 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.d.ts +62 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js +448 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.http.js.map +1 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.d.ts +33 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js +237 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.meta.js.map +1 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.d.ts +130 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js +123 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.public.js.map +1 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.d.ts +618 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js +54 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.types.js.map +1 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.d.ts +1069 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.universal.js +557 -0
- package/build/internal/cjs/src/pricing-plans-v2-plan-plans.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/pricing-plans-v2-plan-plans.context.d.ts +36 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js +36 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.context.js.map +1 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.http.d.ts +62 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js +434 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.http.js.map +1 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.d.ts +33 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js +200 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.meta.js.map +1 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.public.d.ts +130 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js +103 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.public.js.map +1 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.d.ts +618 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js +51 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.types.js.map +1 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.d.ts +1069 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js +520 -0
- package/build/internal/es/src/pricing-plans-v2-plan-plans.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,237 @@
|
|
|
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.archivePlan = exports.clearPrimary = exports.makePlanPrimary = exports.setPlanVisibility = exports.updatePlan = exports.createPlan = exports.getPlanStats = exports.listPlans = exports.getPlan = exports.queryPublicPlans = exports.listPublicPlans = void 0;
|
|
27
|
+
const ambassadorWixPricingPlansV2Plan = __importStar(require("./pricing-plans-v2-plan-plans.http.js"));
|
|
28
|
+
function listPublicPlans() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.listPublicPlans(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'GET',
|
|
38
|
+
path: '/v2/plans/public',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.listPublicPlans = listPublicPlans;
|
|
47
|
+
function queryPublicPlans() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.queryPublicPlans(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'POST',
|
|
57
|
+
path: '/v2/plans/public/query',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.queryPublicPlans = queryPublicPlans;
|
|
66
|
+
function getPlan() {
|
|
67
|
+
const payload = { id: ':id' };
|
|
68
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.getPlan(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'GET',
|
|
76
|
+
path: '/v2/plans/{id}',
|
|
77
|
+
pathParams: { id: 'id' },
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.getPlan = getPlan;
|
|
85
|
+
function listPlans() {
|
|
86
|
+
const payload = {};
|
|
87
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.listPlans(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'GET',
|
|
95
|
+
path: '/v2/plans',
|
|
96
|
+
pathParams: {},
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.listPlans = listPlans;
|
|
104
|
+
function getPlanStats() {
|
|
105
|
+
const payload = {};
|
|
106
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.getPlanStats(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'GET',
|
|
114
|
+
path: '/v2/plans/stats',
|
|
115
|
+
pathParams: {},
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.getPlanStats = getPlanStats;
|
|
123
|
+
function createPlan() {
|
|
124
|
+
const payload = {};
|
|
125
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.createPlan(payload);
|
|
126
|
+
const getUrl = (context) => {
|
|
127
|
+
const { url } = getRequestOptions(context);
|
|
128
|
+
return url;
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
getUrl,
|
|
132
|
+
httpMethod: 'POST',
|
|
133
|
+
path: '/v2/plans',
|
|
134
|
+
pathParams: {},
|
|
135
|
+
__requestType: null,
|
|
136
|
+
__originalRequestType: null,
|
|
137
|
+
__responseType: null,
|
|
138
|
+
__originalResponseType: null,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
exports.createPlan = createPlan;
|
|
142
|
+
function updatePlan() {
|
|
143
|
+
const payload = { plan: { id: ':planId' } };
|
|
144
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.updatePlan(payload);
|
|
145
|
+
const getUrl = (context) => {
|
|
146
|
+
const { url } = getRequestOptions(context);
|
|
147
|
+
return url;
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
getUrl,
|
|
151
|
+
httpMethod: 'PATCH',
|
|
152
|
+
path: '/v2/plans/{plan.id}',
|
|
153
|
+
pathParams: { planId: 'planId' },
|
|
154
|
+
__requestType: null,
|
|
155
|
+
__originalRequestType: null,
|
|
156
|
+
__responseType: null,
|
|
157
|
+
__originalResponseType: null,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
exports.updatePlan = updatePlan;
|
|
161
|
+
function setPlanVisibility() {
|
|
162
|
+
const payload = { id: ':id' };
|
|
163
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.setPlanVisibility(payload);
|
|
164
|
+
const getUrl = (context) => {
|
|
165
|
+
const { url } = getRequestOptions(context);
|
|
166
|
+
return url;
|
|
167
|
+
};
|
|
168
|
+
return {
|
|
169
|
+
getUrl,
|
|
170
|
+
httpMethod: 'PUT',
|
|
171
|
+
path: '/v2/plans/{id}/visibility',
|
|
172
|
+
pathParams: { id: 'id' },
|
|
173
|
+
__requestType: null,
|
|
174
|
+
__originalRequestType: null,
|
|
175
|
+
__responseType: null,
|
|
176
|
+
__originalResponseType: null,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
exports.setPlanVisibility = setPlanVisibility;
|
|
180
|
+
function makePlanPrimary() {
|
|
181
|
+
const payload = { id: ':id' };
|
|
182
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.makePlanPrimary(payload);
|
|
183
|
+
const getUrl = (context) => {
|
|
184
|
+
const { url } = getRequestOptions(context);
|
|
185
|
+
return url;
|
|
186
|
+
};
|
|
187
|
+
return {
|
|
188
|
+
getUrl,
|
|
189
|
+
httpMethod: 'POST',
|
|
190
|
+
path: '/v2/plans/{id}/make-primary',
|
|
191
|
+
pathParams: { id: 'id' },
|
|
192
|
+
__requestType: null,
|
|
193
|
+
__originalRequestType: null,
|
|
194
|
+
__responseType: null,
|
|
195
|
+
__originalResponseType: null,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
exports.makePlanPrimary = makePlanPrimary;
|
|
199
|
+
function clearPrimary() {
|
|
200
|
+
const payload = {};
|
|
201
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.clearPrimary(payload);
|
|
202
|
+
const getUrl = (context) => {
|
|
203
|
+
const { url } = getRequestOptions(context);
|
|
204
|
+
return url;
|
|
205
|
+
};
|
|
206
|
+
return {
|
|
207
|
+
getUrl,
|
|
208
|
+
httpMethod: 'POST',
|
|
209
|
+
path: '/v2/plans/clear-primary',
|
|
210
|
+
pathParams: {},
|
|
211
|
+
__requestType: null,
|
|
212
|
+
__originalRequestType: null,
|
|
213
|
+
__responseType: null,
|
|
214
|
+
__originalResponseType: null,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
exports.clearPrimary = clearPrimary;
|
|
218
|
+
function archivePlan() {
|
|
219
|
+
const payload = { id: ':id' };
|
|
220
|
+
const getRequestOptions = ambassadorWixPricingPlansV2Plan.archivePlan(payload);
|
|
221
|
+
const getUrl = (context) => {
|
|
222
|
+
const { url } = getRequestOptions(context);
|
|
223
|
+
return url;
|
|
224
|
+
};
|
|
225
|
+
return {
|
|
226
|
+
getUrl,
|
|
227
|
+
httpMethod: 'POST',
|
|
228
|
+
path: '/v2/plans/{id}/archive',
|
|
229
|
+
pathParams: { id: 'id' },
|
|
230
|
+
__requestType: null,
|
|
231
|
+
__originalRequestType: null,
|
|
232
|
+
__responseType: null,
|
|
233
|
+
__originalResponseType: null,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
exports.archivePlan = archivePlan;
|
|
237
|
+
//# sourceMappingURL=pricing-plans-v2-plan-plans.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-plans-v2-plan-plans.meta.js","sourceRoot":"","sources":["../../../../src/pricing-plans-v2-plan-plans.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uGAAyF;AAsBzF,SAAgB,eAAe;IAU7B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE3D,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AAC,OAAO,CAAC,CAAC;IAExD,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;KACpC,CAAC;AACJ,CAAC;AA5BD,oCA4BC;AAED,SAAgB,WAAW;IAUzB,MAAM,OAAO,GAAG,EAAE,EAAE,EAAE,KAAK,EAAS,CAAC;IAErC,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvD,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,wBAAwB;QAC9B,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;AA9BD,kCA8BC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { ArchivePlanResponse, ArchivePlanResponseNonNullableFields, GetPlanStatsResponse, GetPlanStatsResponseNonNullableFields, ListPlansOptions, ListPlansResponse, ListPlansResponseNonNullableFields, ListPublicPlansOptions, ListPublicPlansResponse, ListPublicPlansResponseNonNullableFields, MakePlanPrimaryResponse, MakePlanPrimaryResponseNonNullableFields, Plan, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanNonNullableFields, PlanUpdatedEnvelope, PlansQueryBuilder, SetPlanVisibilityResponse, SetPlanVisibilityResponseNonNullableFields, UpdatePlan } from './pricing-plans-v2-plan-plans.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function listPublicPlans(httpClient: HttpClient): ListPublicPlansSignature;
|
|
7
|
+
interface ListPublicPlansSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased.
|
|
10
|
+
* @param - Options for filtering and paging the list of public plans.
|
|
11
|
+
*/
|
|
12
|
+
(options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse & ListPublicPlansResponseNonNullableFields>;
|
|
13
|
+
}
|
|
14
|
+
export declare function queryPublicPlans(httpClient: HttpClient): QueryPublicPlansSignature;
|
|
15
|
+
interface QueryPublicPlansSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a query to retrieve a list of public pricing plans.
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object.
|
|
21
|
+
*
|
|
22
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method.
|
|
23
|
+
*
|
|
24
|
+
* You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns.
|
|
25
|
+
*
|
|
26
|
+
* `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override:
|
|
27
|
+
* - [`skip`](#plansquerybuilder/skip): `0`
|
|
28
|
+
* - [`limit`](#plansquerybuilder/limit): `50`
|
|
29
|
+
*
|
|
30
|
+
* The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value.
|
|
31
|
+
*
|
|
32
|
+
* The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult).
|
|
33
|
+
*/
|
|
34
|
+
(): PlansQueryBuilder;
|
|
35
|
+
}
|
|
36
|
+
export declare function getPlan(httpClient: HttpClient): GetPlanSignature;
|
|
37
|
+
interface GetPlanSignature {
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves a pricing plan by ID.
|
|
40
|
+
* @param - Plan ID.
|
|
41
|
+
* @returns Pricing plan.
|
|
42
|
+
*/
|
|
43
|
+
(_id: string): Promise<Plan & PlanNonNullableFields>;
|
|
44
|
+
}
|
|
45
|
+
export declare function listPlans(httpClient: HttpClient): ListPlansSignature;
|
|
46
|
+
interface ListPlansSignature {
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
|
|
49
|
+
* @param - Options for filtering and paging the list of plans.
|
|
50
|
+
*/
|
|
51
|
+
(options?: ListPlansOptions | undefined): Promise<ListPlansResponse & ListPlansResponseNonNullableFields>;
|
|
52
|
+
}
|
|
53
|
+
export declare function getPlanStats(httpClient: HttpClient): GetPlanStatsSignature;
|
|
54
|
+
interface GetPlanStatsSignature {
|
|
55
|
+
/**
|
|
56
|
+
* Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
|
|
57
|
+
*/
|
|
58
|
+
(): Promise<GetPlanStatsResponse & GetPlanStatsResponseNonNullableFields>;
|
|
59
|
+
}
|
|
60
|
+
export declare function createPlan(httpClient: HttpClient): CreatePlanSignature;
|
|
61
|
+
interface CreatePlanSignature {
|
|
62
|
+
/**
|
|
63
|
+
* Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:
|
|
64
|
+
* - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.
|
|
65
|
+
* - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.
|
|
66
|
+
* - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).
|
|
67
|
+
* Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
|
|
68
|
+
* @param - Information for the plan being created.
|
|
69
|
+
* @returns Created plan.
|
|
70
|
+
*/
|
|
71
|
+
(plan: Plan): Promise<Plan & PlanNonNullableFields>;
|
|
72
|
+
}
|
|
73
|
+
export declare function updatePlan(httpClient: HttpClient): UpdatePlanSignature;
|
|
74
|
+
interface UpdatePlanSignature {
|
|
75
|
+
/**
|
|
76
|
+
* Updates a pricing plan.
|
|
77
|
+
* Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.
|
|
78
|
+
* @param - ID of the plan to update.
|
|
79
|
+
* @param - Options for updating the plan.
|
|
80
|
+
* @returns Updated plan.
|
|
81
|
+
*/
|
|
82
|
+
(_id: string, plan: UpdatePlan): Promise<Plan & PlanNonNullableFields>;
|
|
83
|
+
}
|
|
84
|
+
export declare function setPlanVisibility(httpClient: HttpClient): SetPlanVisibilitySignature;
|
|
85
|
+
interface SetPlanVisibilitySignature {
|
|
86
|
+
/**
|
|
87
|
+
* Sets visibility for pricing plans. Visible plans are considered public plans.
|
|
88
|
+
* By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
|
|
89
|
+
* As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.)
|
|
90
|
+
* Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.
|
|
91
|
+
* @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
|
|
92
|
+
* @param - The ID of the plan to either display or hide on the site page.
|
|
93
|
+
* @param - Plan visibility options.
|
|
94
|
+
*/
|
|
95
|
+
(_id: string, visible: boolean): Promise<SetPlanVisibilityResponse & SetPlanVisibilityResponseNonNullableFields>;
|
|
96
|
+
}
|
|
97
|
+
export declare function makePlanPrimary(httpClient: HttpClient): MakePlanPrimarySignature;
|
|
98
|
+
interface MakePlanPrimarySignature {
|
|
99
|
+
/**
|
|
100
|
+
* Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status.
|
|
101
|
+
* @param - ID of the pricing plan to set as the primary plan.
|
|
102
|
+
*/
|
|
103
|
+
(_id: string): Promise<MakePlanPrimaryResponse & MakePlanPrimaryResponseNonNullableFields>;
|
|
104
|
+
}
|
|
105
|
+
export declare function clearPrimary(httpClient: HttpClient): ClearPrimarySignature;
|
|
106
|
+
interface ClearPrimarySignature {
|
|
107
|
+
/**
|
|
108
|
+
* Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
|
|
109
|
+
*/
|
|
110
|
+
(): Promise<void>;
|
|
111
|
+
}
|
|
112
|
+
export declare function archivePlan(httpClient: HttpClient): ArchivePlanSignature;
|
|
113
|
+
interface ArchivePlanSignature {
|
|
114
|
+
/**
|
|
115
|
+
* Archives a single plan.
|
|
116
|
+
* When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
|
|
117
|
+
* This is because the plan's `public` property is automatically set to `false`.
|
|
118
|
+
* Archived plans can't be purchased or reactivated.
|
|
119
|
+
* Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms.
|
|
120
|
+
* Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
|
|
121
|
+
* > **Note:** An attempt to archive an already-archived plan throws an error.
|
|
122
|
+
* @param - ID of the active plan to archive.
|
|
123
|
+
*/
|
|
124
|
+
(_id: string): Promise<ArchivePlanResponse & ArchivePlanResponseNonNullableFields>;
|
|
125
|
+
}
|
|
126
|
+
export declare const onPlanBuyerCanCancelUpdated: EventDefinition<PlanBuyerCanCancelUpdatedEnvelope, "wix.pricing_plans.plan_buyer_can_cancel_updated">;
|
|
127
|
+
export declare const onPlanCreated: EventDefinition<PlanCreatedEnvelope, "wix.pricing_plans.plan_created">;
|
|
128
|
+
export declare const onPlanArchived: EventDefinition<PlanArchivedEnvelope, "wix.pricing_plans.plan_plan_archived">;
|
|
129
|
+
export declare const onPlanUpdated: EventDefinition<PlanUpdatedEnvelope, "wix.pricing_plans.plan_updated">;
|
|
130
|
+
export { ActionEvent, ApplicationError, AppliedAt, ArchivePlanRequest, ArchivePlanResponse, ArchivePlanResponseNonNullableFields, ArchivedFilter, ArrangePlansRequest, ArrangePlansResponse, BaseEventMetadata, BulkActionMetadata, BulkArchivePlanRequest, BulkArchivePlanResponse, BulkPlanResult, BuyerCanCancelUpdated, ClearPrimaryRequest, ClearPrimaryResponse, CountPlansRequest, CountPlansResponse, CreatePlanRequest, CreatePlanResponse, CreatePlanResponseNonNullableFields, Cursors, DomainEvent, DomainEventBodyOneOf, Duration, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Fee, FeeConfig, GetPlanRequest, GetPlanResponse, GetPlanResponseNonNullableFields, GetPlanStatsRequest, GetPlanStatsResponse, GetPlanStatsResponseNonNullableFields, GetPlansPremiumStatusRequest, GetPlansPremiumStatusResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListPlansOptions, ListPlansRequest, ListPlansResponse, ListPlansResponseNonNullableFields, ListPublicPlansOptions, ListPublicPlansRequest, ListPublicPlansResponse, ListPublicPlansResponseNonNullableFields, MakePlanPrimaryRequest, MakePlanPrimaryResponse, MakePlanPrimaryResponseNonNullableFields, MessageEnvelope, Money, Paging, PagingMetadataV2, PeriodUnit, Plan, PlanArchived, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanNonNullableFields, PlanUpdatedEnvelope, PlansQueryBuilder, PlansQueryResult, Pricing, PricingPricingModelOneOf, PublicFilter, PublicPlan, QueryPublicPlansRequest, QueryPublicPlansResponse, QueryPublicPlansResponseNonNullableFields, QueryV2, Recurrence, RestoreInfo, SearchPlansRequest, SearchPlansResponse, SetPlanVisibilityRequest, SetPlanVisibilityResponse, SetPlanVisibilityResponseNonNullableFields, SortOrder, Sorting, StringList, UpdatePlan, UpdatePlanRequest, UpdatePlanResponse, UpdatePlanResponseNonNullableFields, WebhookIdentityType, } from './pricing-plans-v2-plan-plans.universal.js';
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.PublicFilter = exports.PeriodUnit = exports.ArchivedFilter = exports.AppliedAt = exports.onPlanUpdated = exports.onPlanArchived = exports.onPlanCreated = exports.onPlanBuyerCanCancelUpdated = exports.archivePlan = exports.clearPrimary = exports.makePlanPrimary = exports.setPlanVisibility = exports.updatePlan = exports.createPlan = exports.getPlanStats = exports.listPlans = exports.getPlan = exports.queryPublicPlans = exports.listPublicPlans = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const pricing_plans_v2_plan_plans_universal_js_1 = require("./pricing-plans-v2-plan-plans.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/pricing-plans' };
|
|
10
|
+
function listPublicPlans(httpClient) {
|
|
11
|
+
return (options) => (0, pricing_plans_v2_plan_plans_universal_js_1.listPublicPlans)(options,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.listPublicPlans = listPublicPlans;
|
|
16
|
+
function queryPublicPlans(httpClient) {
|
|
17
|
+
return () => (0, pricing_plans_v2_plan_plans_universal_js_1.queryPublicPlans)(
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
exports.queryPublicPlans = queryPublicPlans;
|
|
22
|
+
function getPlan(httpClient) {
|
|
23
|
+
return (_id) => (0, pricing_plans_v2_plan_plans_universal_js_1.getPlan)(_id,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
exports.getPlan = getPlan;
|
|
28
|
+
function listPlans(httpClient) {
|
|
29
|
+
return (options) => (0, pricing_plans_v2_plan_plans_universal_js_1.listPlans)(options,
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
{ httpClient });
|
|
32
|
+
}
|
|
33
|
+
exports.listPlans = listPlans;
|
|
34
|
+
function getPlanStats(httpClient) {
|
|
35
|
+
return () => (0, pricing_plans_v2_plan_plans_universal_js_1.getPlanStats)(
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
exports.getPlanStats = getPlanStats;
|
|
40
|
+
function createPlan(httpClient) {
|
|
41
|
+
return (plan) => (0, pricing_plans_v2_plan_plans_universal_js_1.createPlan)(plan,
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
{ httpClient });
|
|
44
|
+
}
|
|
45
|
+
exports.createPlan = createPlan;
|
|
46
|
+
function updatePlan(httpClient) {
|
|
47
|
+
return (_id, plan) => (0, pricing_plans_v2_plan_plans_universal_js_1.updatePlan)(_id, plan,
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
{ httpClient });
|
|
50
|
+
}
|
|
51
|
+
exports.updatePlan = updatePlan;
|
|
52
|
+
function setPlanVisibility(httpClient) {
|
|
53
|
+
return (_id, visible) => (0, pricing_plans_v2_plan_plans_universal_js_1.setPlanVisibility)(_id, visible,
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
{ httpClient });
|
|
56
|
+
}
|
|
57
|
+
exports.setPlanVisibility = setPlanVisibility;
|
|
58
|
+
function makePlanPrimary(httpClient) {
|
|
59
|
+
return (_id) => (0, pricing_plans_v2_plan_plans_universal_js_1.makePlanPrimary)(_id,
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
{ httpClient });
|
|
62
|
+
}
|
|
63
|
+
exports.makePlanPrimary = makePlanPrimary;
|
|
64
|
+
function clearPrimary(httpClient) {
|
|
65
|
+
return () => (0, pricing_plans_v2_plan_plans_universal_js_1.clearPrimary)(
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
{ httpClient });
|
|
68
|
+
}
|
|
69
|
+
exports.clearPrimary = clearPrimary;
|
|
70
|
+
function archivePlan(httpClient) {
|
|
71
|
+
return (_id) => (0, pricing_plans_v2_plan_plans_universal_js_1.archivePlan)(_id,
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
{ httpClient });
|
|
74
|
+
}
|
|
75
|
+
exports.archivePlan = archivePlan;
|
|
76
|
+
exports.onPlanBuyerCanCancelUpdated = (0, sdk_types_1.EventDefinition)('wix.pricing_plans.plan_buyer_can_cancel_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
77
|
+
{
|
|
78
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
79
|
+
paths: [
|
|
80
|
+
{ path: 'data.plan.createdDate' },
|
|
81
|
+
{ path: 'data.plan.updatedDate' },
|
|
82
|
+
{ path: 'metadata.eventTime' },
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
])))();
|
|
86
|
+
exports.onPlanCreated = (0, sdk_types_1.EventDefinition)('wix.pricing_plans.plan_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
87
|
+
{
|
|
88
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
89
|
+
paths: [
|
|
90
|
+
{ path: 'entity.createdDate' },
|
|
91
|
+
{ path: 'entity.updatedDate' },
|
|
92
|
+
{ path: 'metadata.eventTime' },
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
])))();
|
|
96
|
+
exports.onPlanArchived = (0, sdk_types_1.EventDefinition)('wix.pricing_plans.plan_plan_archived', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
97
|
+
{
|
|
98
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
99
|
+
paths: [
|
|
100
|
+
{ path: 'data.plan.createdDate' },
|
|
101
|
+
{ path: 'data.plan.updatedDate' },
|
|
102
|
+
{ path: 'metadata.eventTime' },
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
])))();
|
|
106
|
+
exports.onPlanUpdated = (0, sdk_types_1.EventDefinition)('wix.pricing_plans.plan_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
107
|
+
{
|
|
108
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
109
|
+
paths: [
|
|
110
|
+
{ path: 'entity.createdDate' },
|
|
111
|
+
{ path: 'entity.updatedDate' },
|
|
112
|
+
{ path: 'metadata.eventTime' },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
])))();
|
|
116
|
+
var pricing_plans_v2_plan_plans_universal_js_2 = require("./pricing-plans-v2-plan-plans.universal.js");
|
|
117
|
+
Object.defineProperty(exports, "AppliedAt", { enumerable: true, get: function () { return pricing_plans_v2_plan_plans_universal_js_2.AppliedAt; } });
|
|
118
|
+
Object.defineProperty(exports, "ArchivedFilter", { enumerable: true, get: function () { return pricing_plans_v2_plan_plans_universal_js_2.ArchivedFilter; } });
|
|
119
|
+
Object.defineProperty(exports, "PeriodUnit", { enumerable: true, get: function () { return pricing_plans_v2_plan_plans_universal_js_2.PeriodUnit; } });
|
|
120
|
+
Object.defineProperty(exports, "PublicFilter", { enumerable: true, get: function () { return pricing_plans_v2_plan_plans_universal_js_2.PublicFilter; } });
|
|
121
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return pricing_plans_v2_plan_plans_universal_js_2.SortOrder; } });
|
|
122
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return pricing_plans_v2_plan_plans_universal_js_2.WebhookIdentityType; } });
|
|
123
|
+
//# sourceMappingURL=pricing-plans-v2-plan-plans.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-plans-v2-plan-plans.public.js","sourceRoot":"","sources":["../../../../src/pricing-plans-v2-plan-plans.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,yGAkCoD;AAEvC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAEjE,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAgC,EAAE,EAAE,CAC1C,IAAA,0DAAwB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAYD,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,2DAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4CAQC;AAwBD,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,kDAAgB,EACd,GAAG;IACH,aAAa;IACb,EAAE,UAAU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