@wix/auto_sdk_benefit-programs_pool-definitions 1.0.29 → 1.0.31
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 +5 -4
- package/build/cjs/index.js +138 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -7
- package/build/cjs/index.typings.js +136 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +132 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -4
- package/build/es/index.mjs +138 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -7
- package/build/es/index.typings.mjs +136 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +132 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -4
- package/build/internal/cjs/index.js +138 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +5 -7
- package/build/internal/cjs/index.typings.js +136 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js +132 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -4
- package/build/internal/es/index.mjs +138 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +5 -7
- package/build/internal/es/index.typings.mjs +136 -8
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs +132 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { PoolDefinition, CreatePoolDefinitionOptions, BulkCreatePoolDefinitionsOptions, BulkCreatePoolDefinitionsResponse, UpdatePoolDefinition, UpdatePoolDefinitionOptions, UpdatePoolDefinitionValidationErrors, BulkUpdatePoolDefinitionsOptions, BulkUpdatePoolDefinitionsResponse, BulkUpdatePoolDefinitionsValidationErrors,
|
|
3
|
-
export { ActionEvent, AddPoolDefinitionToProgramDefinitionRequest, ApplicationError, Benefit, BulkActionMetadata, BulkCreatePoolDefinitionsRequest, BulkDeletePoolDefinitionsRequest, BulkPoolDefinitionResult, BulkUpdatePoolDefinitionsRequest, Cascade,
|
|
2
|
+
import { PoolDefinition, CreatePoolDefinitionOptions, BulkCreatePoolDefinitionsOptions, BulkCreatePoolDefinitionsResponse, UpdatePoolDefinition, UpdatePoolDefinitionOptions, UpdatePoolDefinitionValidationErrors, BulkUpdatePoolDefinitionsOptions, BulkUpdatePoolDefinitionsResponse, BulkUpdatePoolDefinitionsValidationErrors, CascadeWithLiterals, BulkDeletePoolDefinitionsOptions, BulkDeletePoolDefinitionsResponse, PoolDefinitionsQueryBuilder, AddPoolDefinitionToProgramDefinitionOptions, AddPoolDefinitionToProgramDefinitionResponse, AddPoolDefinitionToProgramDefinitionValidationErrors, RemovePoolDefinitionFromProgramDefinitionOptions, RemovePoolDefinitionFromProgramDefinitionResponse, RemovePoolDefinitionFromProgramDefinitionValidationErrors, FindPoolDefinitionsByProgramDefinitionOptions, FindPoolDefinitionsByProgramDefinitionResponse } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, AddPoolDefinitionToProgramDefinitionRequest, ApplicationError, Benefit, BulkActionMetadata, BulkCreatePoolDefinitionsRequest, BulkDeletePoolDefinitionsRequest, BulkPoolDefinitionResult, BulkUpdatePoolDefinitionsRequest, Cascade, CreatePoolDefinitionRequest, CreatePoolDefinitionResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolDefinitionRequest, DeletePoolDefinitionResponse, Details, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FindPoolDefinitionsByProgramDefinitionRequest, FixedIntervalPolicy, GetPoolDefinitionRequest, GetPoolDefinitionResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MaskedPoolDefinition, MessageEnvelope, Policy, PolicyExpression, PolicyExpressionAnd, PolicyExpressionExpressionOneOf, PolicyExpressionNot, PolicyExpressionOr, PolicyExpressionType, PolicyExpressionTypeWithLiterals, PolicyPolicyOneOf, PoolDefinitionAddedToProgramDefinition, PoolDefinitionDeletedProxySupport, PoolDefinitionRemovedFromProgramDefinition, PoolDefinitionUpdatedProxySupport, PoolDefinitionsQueryResult, ProgramDefinitionInfo, QueryPoolDefinitionsRequest, QueryPoolDefinitionsResponse, RateLimitedPolicy, RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, RateLimitedPolicyTypeWithLiterals, RemovePoolDefinitionFromProgramDefinitionRequest, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, Type, TypeWithLiterals, UpdatePoolDefinitionRequest, UpdatePoolDefinitionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createPoolDefinition$1(httpClient: HttpClient): CreatePoolDefinitionSignature;
|
|
6
6
|
interface CreatePoolDefinitionSignature {
|
|
@@ -50,8 +50,9 @@ interface DeletePoolDefinitionSignature {
|
|
|
50
50
|
/**
|
|
51
51
|
* Deletes a pool definition.
|
|
52
52
|
* @param - ID of the pool definition to delete.
|
|
53
|
+
* @param - *Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools.
|
|
53
54
|
*/
|
|
54
|
-
(poolDefinitionId: string,
|
|
55
|
+
(poolDefinitionId: string, cascade: CascadeWithLiterals): Promise<void>;
|
|
55
56
|
}
|
|
56
57
|
declare function bulkDeletePoolDefinitions$1(httpClient: HttpClient): BulkDeletePoolDefinitionsSignature;
|
|
57
58
|
interface BulkDeletePoolDefinitionsSignature {
|
|
@@ -132,4 +133,4 @@ declare const addPoolDefinitionToProgramDefinition: MaybeContext<BuildRESTFuncti
|
|
|
132
133
|
declare const removePoolDefinitionFromProgramDefinition: MaybeContext<BuildRESTFunction<typeof removePoolDefinitionFromProgramDefinition$1> & typeof removePoolDefinitionFromProgramDefinition$1>;
|
|
133
134
|
declare const findPoolDefinitionsByProgramDefinition: MaybeContext<BuildRESTFunction<typeof findPoolDefinitionsByProgramDefinition$1> & typeof findPoolDefinitionsByProgramDefinition$1>;
|
|
134
135
|
|
|
135
|
-
export { AddPoolDefinitionToProgramDefinitionOptions, AddPoolDefinitionToProgramDefinitionResponse, AddPoolDefinitionToProgramDefinitionValidationErrors, BulkCreatePoolDefinitionsOptions, BulkCreatePoolDefinitionsResponse, BulkDeletePoolDefinitionsOptions, BulkDeletePoolDefinitionsResponse, BulkUpdatePoolDefinitionsOptions, BulkUpdatePoolDefinitionsResponse, BulkUpdatePoolDefinitionsValidationErrors,
|
|
136
|
+
export { AddPoolDefinitionToProgramDefinitionOptions, AddPoolDefinitionToProgramDefinitionResponse, AddPoolDefinitionToProgramDefinitionValidationErrors, BulkCreatePoolDefinitionsOptions, BulkCreatePoolDefinitionsResponse, BulkDeletePoolDefinitionsOptions, BulkDeletePoolDefinitionsResponse, BulkUpdatePoolDefinitionsOptions, BulkUpdatePoolDefinitionsResponse, BulkUpdatePoolDefinitionsValidationErrors, CascadeWithLiterals, CreatePoolDefinitionOptions, FindPoolDefinitionsByProgramDefinitionOptions, FindPoolDefinitionsByProgramDefinitionResponse, PoolDefinition, PoolDefinitionsQueryBuilder, RemovePoolDefinitionFromProgramDefinitionOptions, RemovePoolDefinitionFromProgramDefinitionResponse, RemovePoolDefinitionFromProgramDefinitionValidationErrors, UpdatePoolDefinition, UpdatePoolDefinitionOptions, UpdatePoolDefinitionValidationErrors, addPoolDefinitionToProgramDefinition, bulkCreatePoolDefinitions, bulkDeletePoolDefinitions, bulkUpdatePoolDefinitions, createPoolDefinition, deletePoolDefinition, findPoolDefinitionsByProgramDefinition, getPoolDefinition, queryPoolDefinitions, removePoolDefinitionFromProgramDefinition, updatePoolDefinition };
|
package/build/cjs/index.js
CHANGED
|
@@ -54,7 +54,138 @@ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
|
54
54
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
55
55
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
56
56
|
function resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl(opts) {
|
|
57
|
-
const domainToMappings = {
|
|
57
|
+
const domainToMappings = {
|
|
58
|
+
"api._api_base_domain_": [
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/pool-definitions",
|
|
61
|
+
destPath: ""
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"*.dev.wix-code.com": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
67
|
+
destPath: ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
71
|
+
destPath: "/v1/pool-definitions"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
75
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"*.pub.wix-code.com": [
|
|
79
|
+
{
|
|
80
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
81
|
+
destPath: ""
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
_: [
|
|
85
|
+
{
|
|
86
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
87
|
+
destPath: ""
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"editor._base_domain_": [
|
|
91
|
+
{
|
|
92
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
93
|
+
destPath: ""
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
97
|
+
destPath: "/v1/pool-definitions"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
101
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"blocks._base_domain_": [
|
|
105
|
+
{
|
|
106
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
107
|
+
destPath: ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
111
|
+
destPath: "/v1/pool-definitions"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
115
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"create.editorx": [
|
|
119
|
+
{
|
|
120
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
121
|
+
destPath: ""
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
125
|
+
destPath: "/v1/pool-definitions"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
129
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"editor.wixapps.net": [
|
|
133
|
+
{
|
|
134
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
135
|
+
destPath: ""
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
139
|
+
destPath: "/v1/pool-definitions"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
143
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"manage._base_domain_": [
|
|
147
|
+
{
|
|
148
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
149
|
+
destPath: ""
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
153
|
+
destPath: "/v1/pool-definitions"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
157
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"www._base_domain_": [
|
|
161
|
+
{
|
|
162
|
+
srcPath: "/_api/benefit-programs-pool-definitions",
|
|
163
|
+
destPath: ""
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
167
|
+
destPath: "/v1/pool-definitions"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
|
|
171
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"www.wixapis.com": [
|
|
175
|
+
{
|
|
176
|
+
srcPath: "/_api/benefit-programs/v1/pool-definitions",
|
|
177
|
+
destPath: "/v1/pool-definitions"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
srcPath: "/benefit-programs/v1/pool-definitions",
|
|
181
|
+
destPath: "/v1/pool-definitions"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
srcPath: "/benefit-programs/v1/bulk/pool-definitions",
|
|
185
|
+
destPath: "/v1/bulk/pool-definitions"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
};
|
|
58
189
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
59
190
|
}
|
|
60
191
|
var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_pool-definitions";
|
|
@@ -602,11 +733,11 @@ async function bulkUpdatePoolDefinitions2(options) {
|
|
|
602
733
|
throw transformedError;
|
|
603
734
|
}
|
|
604
735
|
}
|
|
605
|
-
async function deletePoolDefinition2(poolDefinitionId,
|
|
736
|
+
async function deletePoolDefinition2(poolDefinitionId, cascade) {
|
|
606
737
|
const { httpClient, sideEffects } = arguments[2];
|
|
607
738
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
608
739
|
poolDefinitionId,
|
|
609
|
-
cascade
|
|
740
|
+
cascade
|
|
610
741
|
});
|
|
611
742
|
const reqOpts = deletePoolDefinition(payload);
|
|
612
743
|
sideEffects?.onSiteCall?.();
|
|
@@ -618,13 +749,10 @@ async function deletePoolDefinition2(poolDefinitionId, options) {
|
|
|
618
749
|
err,
|
|
619
750
|
{
|
|
620
751
|
spreadPathsToArguments: {},
|
|
621
|
-
explicitPathsToArguments: {
|
|
622
|
-
poolDefinitionId: "$[0]",
|
|
623
|
-
cascade: "$[1].cascade"
|
|
624
|
-
},
|
|
752
|
+
explicitPathsToArguments: { poolDefinitionId: "$[0]", cascade: "$[1]" },
|
|
625
753
|
singleArgumentUnchanged: false
|
|
626
754
|
},
|
|
627
|
-
["poolDefinitionId", "
|
|
755
|
+
["poolDefinitionId", "cascade"]
|
|
628
756
|
);
|
|
629
757
|
sideEffects?.onError?.(err);
|
|
630
758
|
throw transformedError;
|
|
@@ -865,9 +993,9 @@ function bulkUpdatePoolDefinitions3(httpClient) {
|
|
|
865
993
|
);
|
|
866
994
|
}
|
|
867
995
|
function deletePoolDefinition3(httpClient) {
|
|
868
|
-
return (poolDefinitionId,
|
|
996
|
+
return (poolDefinitionId, cascade) => deletePoolDefinition2(
|
|
869
997
|
poolDefinitionId,
|
|
870
|
-
|
|
998
|
+
cascade,
|
|
871
999
|
// @ts-ignore
|
|
872
1000
|
{ httpClient }
|
|
873
1001
|
);
|