@wix/auto_sdk_pricing-plans_plans 1.0.111 → 1.0.113
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.js +60 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -9
- package/build/cjs/index.typings.js +51 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +50 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +22 -22
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +60 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -9
- package/build/es/index.typings.mjs +51 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +50 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +22 -22
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +60 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +75 -9
- package/build/internal/cjs/index.typings.js +51 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +96 -0
- package/build/internal/cjs/meta.js +50 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +22 -22
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +60 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +75 -9
- package/build/internal/es/index.typings.mjs +51 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +96 -0
- package/build/internal/es/meta.mjs +50 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +22 -22
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -77,6 +77,12 @@ interface Plan {
|
|
|
77
77
|
* @maxLength 3000
|
|
78
78
|
*/
|
|
79
79
|
termsAndConditions?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Client data such as the plan's cover image, terms & conditions settings.
|
|
82
|
+
* @internal
|
|
83
|
+
* @maxSize 10
|
|
84
|
+
*/
|
|
85
|
+
clientData?: Record<string, string>;
|
|
80
86
|
/**
|
|
81
87
|
* ID of the form associated with the plan at checkout.
|
|
82
88
|
*
|
|
@@ -109,6 +115,11 @@ interface Pricing extends PricingPricingModelOneOf {
|
|
|
109
115
|
* @max 999
|
|
110
116
|
*/
|
|
111
117
|
freeTrialDays?: number | null;
|
|
118
|
+
/**
|
|
119
|
+
* Additional fees that would apply to the order, one of which might be a setup fee.
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
feeConfigs?: FeeConfig[];
|
|
112
123
|
}
|
|
113
124
|
/** @oneof */
|
|
114
125
|
interface PricingPricingModelOneOf {
|
|
@@ -258,6 +269,12 @@ interface PublicPlan {
|
|
|
258
269
|
buyerCanCancel?: boolean | null;
|
|
259
270
|
/** Any terms and conditions that apply to the plan. This information is displayed during checkout. */
|
|
260
271
|
termsAndConditions?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* Client data such as the plan's cover image, terms & conditions settings.
|
|
274
|
+
* @internal
|
|
275
|
+
* @maxSize 10
|
|
276
|
+
*/
|
|
277
|
+
clientData?: Record<string, string>;
|
|
261
278
|
/**
|
|
262
279
|
* ID of the form associated with the plan at checkout.
|
|
263
280
|
*
|
|
@@ -277,6 +294,13 @@ interface PagingMetadataV2 {
|
|
|
277
294
|
tooManyToCount?: boolean | null;
|
|
278
295
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
279
296
|
cursors?: Cursors;
|
|
297
|
+
/**
|
|
298
|
+
* Indicates if there are more results after the current page.
|
|
299
|
+
* If `true`, another page of results can be retrieved.
|
|
300
|
+
* If `false`, this is the last page.
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
hasNext?: boolean | null;
|
|
280
304
|
}
|
|
281
305
|
interface Cursors {
|
|
282
306
|
/**
|
|
@@ -310,6 +334,20 @@ interface Sorting {
|
|
|
310
334
|
fieldName?: string;
|
|
311
335
|
/** Sort order. */
|
|
312
336
|
order?: SortOrderWithLiterals;
|
|
337
|
+
/**
|
|
338
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
339
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
340
|
+
*
|
|
341
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
342
|
+
*
|
|
343
|
+
* Example:
|
|
344
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
345
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
346
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
347
|
+
* @internal
|
|
348
|
+
* @maxSize 10
|
|
349
|
+
*/
|
|
350
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
313
351
|
/**
|
|
314
352
|
* Origin point for geo-distance sorting on a GEO field
|
|
315
353
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -370,6 +408,17 @@ interface ListPlansRequest {
|
|
|
370
408
|
* @maxSize 100
|
|
371
409
|
*/
|
|
372
410
|
planIds?: string[];
|
|
411
|
+
/**
|
|
412
|
+
* Plan name for filtering. Also checks for and includes partial matches.
|
|
413
|
+
* @internal
|
|
414
|
+
* @maxLength 50
|
|
415
|
+
*/
|
|
416
|
+
name?: string | null;
|
|
417
|
+
/**
|
|
418
|
+
* Filters for free plans only.
|
|
419
|
+
* @internal
|
|
420
|
+
*/
|
|
421
|
+
free?: boolean | null;
|
|
373
422
|
}
|
|
374
423
|
declare enum ArchivedFilter {
|
|
375
424
|
/** Returns all plans that are active. */
|
|
@@ -414,6 +463,11 @@ interface CreatePlanResponse {
|
|
|
414
463
|
interface UpdatePlanRequest {
|
|
415
464
|
/** ID of the plan to update. */
|
|
416
465
|
plan: Plan;
|
|
466
|
+
/**
|
|
467
|
+
* Explicit list of fields to update.
|
|
468
|
+
* @internal
|
|
469
|
+
*/
|
|
470
|
+
fieldMask?: string[];
|
|
417
471
|
}
|
|
418
472
|
interface UpdatePlanResponse {
|
|
419
473
|
/** Updated plan. */
|
|
@@ -601,8 +655,18 @@ interface DomainEventBodyOneOf {
|
|
|
601
655
|
}
|
|
602
656
|
interface EntityCreatedEvent {
|
|
603
657
|
entityAsJson?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
660
|
+
* @internal
|
|
661
|
+
*/
|
|
662
|
+
triggeredByUndelete?: boolean | null;
|
|
604
663
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
605
664
|
restoreInfo?: RestoreInfo;
|
|
665
|
+
/**
|
|
666
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
667
|
+
* @internal
|
|
668
|
+
*/
|
|
669
|
+
additionalMetadataAsJson?: string | null;
|
|
606
670
|
}
|
|
607
671
|
interface RestoreInfo {
|
|
608
672
|
deletedDate?: Date | null;
|
|
@@ -614,10 +678,42 @@ interface EntityUpdatedEvent {
|
|
|
614
678
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
615
679
|
*/
|
|
616
680
|
currentEntityAsJson?: string;
|
|
681
|
+
/**
|
|
682
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
683
|
+
* wont populate it / have any reference to it in the API.
|
|
684
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
685
|
+
* the developer should send only the new (current) entity.
|
|
686
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
687
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
688
|
+
* @internal
|
|
689
|
+
* @deprecated
|
|
690
|
+
*/
|
|
691
|
+
previousEntityAsJson?: string | null;
|
|
692
|
+
/**
|
|
693
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
694
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
695
|
+
* @internal
|
|
696
|
+
*/
|
|
697
|
+
modifiedFields?: Record<string, any>;
|
|
698
|
+
/**
|
|
699
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
700
|
+
* @internal
|
|
701
|
+
*/
|
|
702
|
+
additionalMetadataAsJson?: string | null;
|
|
617
703
|
}
|
|
618
704
|
interface EntityDeletedEvent {
|
|
705
|
+
/**
|
|
706
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
707
|
+
* @internal
|
|
708
|
+
*/
|
|
709
|
+
movedToTrash?: boolean | null;
|
|
619
710
|
/** Entity that was deleted. */
|
|
620
711
|
deletedEntityAsJson?: string | null;
|
|
712
|
+
/**
|
|
713
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
714
|
+
* @internal
|
|
715
|
+
*/
|
|
716
|
+
additionalMetadataAsJson?: string | null;
|
|
621
717
|
}
|
|
622
718
|
interface ActionEvent {
|
|
623
719
|
bodyAsJson?: string;
|
|
@@ -50,16 +50,14 @@ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform
|
|
|
50
50
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
51
51
|
function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
52
52
|
const domainToMappings = {
|
|
53
|
-
"api._api_base_domain_": [
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/plan-proxy",
|
|
56
|
-
destPath: ""
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
53
|
"*.dev.wix-code.com": [
|
|
60
54
|
{
|
|
61
55
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
62
56
|
destPath: "/v2/plans"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
60
|
+
destPath: "/v2/plans"
|
|
63
61
|
}
|
|
64
62
|
],
|
|
65
63
|
"*.pub.wix-code.com": [
|
|
@@ -78,6 +76,10 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
78
76
|
{
|
|
79
77
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
80
78
|
destPath: "/v2/plans"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
82
|
+
destPath: "/v2/plans"
|
|
81
83
|
}
|
|
82
84
|
],
|
|
83
85
|
"editor-flow.wixapps.net": [
|
|
@@ -90,24 +92,40 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
90
92
|
{
|
|
91
93
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
92
94
|
destPath: "/v2/plans"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
98
|
+
destPath: "/v2/plans"
|
|
93
99
|
}
|
|
94
100
|
],
|
|
95
101
|
"blocks._base_domain_": [
|
|
96
102
|
{
|
|
97
103
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
98
104
|
destPath: "/v2/plans"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
108
|
+
destPath: "/v2/plans"
|
|
99
109
|
}
|
|
100
110
|
],
|
|
101
111
|
"create.editorx": [
|
|
102
112
|
{
|
|
103
113
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
104
114
|
destPath: "/v2/plans"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
118
|
+
destPath: "/v2/plans"
|
|
105
119
|
}
|
|
106
120
|
],
|
|
107
121
|
"editor.wixapps.net": [
|
|
108
122
|
{
|
|
109
123
|
srcPath: "/_api/paid-plans/v2/plans",
|
|
110
124
|
destPath: "/v2/plans"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
128
|
+
destPath: "/v2/plans"
|
|
111
129
|
}
|
|
112
130
|
],
|
|
113
131
|
"forums._base_domain_": [
|
|
@@ -143,6 +161,32 @@ function resolveComWixpressMembershipV2PlansPlansServiceV2Url(opts) {
|
|
|
143
161
|
srcPath: "/pricing-plans/v2/plans",
|
|
144
162
|
destPath: "/v2/plans"
|
|
145
163
|
}
|
|
164
|
+
],
|
|
165
|
+
"apps._base_domain_": [
|
|
166
|
+
{
|
|
167
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
168
|
+
destPath: "/v2/plans"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
172
|
+
destPath: "/v2/plans"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"dev._base_domain_": [
|
|
176
|
+
{
|
|
177
|
+
srcPath: "/_api/paid-plans/v2/plans",
|
|
178
|
+
destPath: "/v2/plans"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
srcPath: "/_api/pricing-plans/v2/plans",
|
|
182
|
+
destPath: "/v2/plans"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"api._api_base_domain_": [
|
|
186
|
+
{
|
|
187
|
+
srcPath: "/plan-proxy",
|
|
188
|
+
destPath: ""
|
|
189
|
+
}
|
|
146
190
|
]
|
|
147
191
|
};
|
|
148
192
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|