@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +5 -4
  2. package/build/cjs/index.js +138 -10
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +5 -7
  5. package/build/cjs/index.typings.js +136 -8
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/cjs/meta.js +132 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +5 -4
  11. package/build/es/index.mjs +138 -10
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +5 -7
  14. package/build/es/index.typings.mjs +136 -8
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1 -1
  17. package/build/es/meta.mjs +132 -1
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +5 -4
  20. package/build/internal/cjs/index.js +138 -10
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +5 -7
  23. package/build/internal/cjs/index.typings.js +136 -8
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1 -1
  26. package/build/internal/cjs/meta.js +132 -1
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +5 -4
  29. package/build/internal/es/index.mjs +138 -10
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +5 -7
  32. package/build/internal/es/index.typings.mjs +136 -8
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +1 -1
  35. package/build/internal/es/meta.mjs +132 -1
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -515,7 +515,7 @@ interface DeletePoolDefinitionRequest {
515
515
  */
516
516
  poolDefinitionId: string;
517
517
  /** *Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools. */
518
- cascade?: CascadeWithLiterals;
518
+ cascade: CascadeWithLiterals;
519
519
  }
520
520
  interface DeletePoolDefinitionResponse {
521
521
  }
@@ -1027,18 +1027,16 @@ interface BulkUpdatePoolDefinitionsOptions {
1027
1027
  /**
1028
1028
  * Deletes a pool definition.
1029
1029
  * @param poolDefinitionId - ID of the pool definition to delete.
1030
+ * @param cascade - *Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools.
1030
1031
  * @public
1031
1032
  * @documentationMaturity preview
1033
+ * @requiredField cascade
1032
1034
  * @requiredField poolDefinitionId
1033
1035
  * @permissionId BENEFIT_PROGRAMS.POOL_DEFINITION_DELETE
1034
1036
  * @applicableIdentity APP
1035
1037
  * @fqn wix.benefit_programs.v1.pool_definition.PoolDefinitionService.DeletePoolDefinition
1036
1038
  */
1037
- declare function deletePoolDefinition(poolDefinitionId: string, options?: DeletePoolDefinitionOptions): Promise<void>;
1038
- interface DeletePoolDefinitionOptions {
1039
- /** Required**. Determines when the changes to this pool definition the program definitions containing it will be applied to associated programs and pools. */
1040
- cascade?: CascadeWithLiterals;
1041
- }
1039
+ declare function deletePoolDefinition(poolDefinitionId: string, cascade: CascadeWithLiterals): Promise<void>;
1042
1040
  /**
1043
1041
  * Deletes pool definitions.
1044
1042
  * @param poolDefinitionIds - List of IDs of the pool definitions to delete.
@@ -1243,4 +1241,4 @@ interface FindPoolDefinitionsByProgramDefinitionOptions {
1243
1241
  namespace: string;
1244
1242
  }
1245
1243
 
1246
- export { type ActionEvent, type AddPoolDefinitionToProgramDefinitionOptions, type AddPoolDefinitionToProgramDefinitionRequest, type AddPoolDefinitionToProgramDefinitionResponse, type AddPoolDefinitionToProgramDefinitionValidationErrors, type ApplicationError, type Benefit, type BulkActionMetadata, type BulkCreatePoolDefinitionsOptions, type BulkCreatePoolDefinitionsRequest, type BulkCreatePoolDefinitionsResponse, type BulkDeletePoolDefinitionsOptions, type BulkDeletePoolDefinitionsRequest, type BulkDeletePoolDefinitionsResponse, type BulkPoolDefinitionResult, type BulkUpdatePoolDefinitionsOptions, type BulkUpdatePoolDefinitionsRequest, type BulkUpdatePoolDefinitionsResponse, type BulkUpdatePoolDefinitionsValidationErrors, Cascade, type CascadeWithLiterals, type CreatePoolDefinitionOptions, type CreatePoolDefinitionRequest, type CreatePoolDefinitionResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolDefinitionOptions, type DeletePoolDefinitionRequest, type DeletePoolDefinitionResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FindPoolDefinitionsByProgramDefinitionOptions, type FindPoolDefinitionsByProgramDefinitionRequest, type FindPoolDefinitionsByProgramDefinitionResponse, type FixedIntervalPolicy, type GetPoolDefinitionRequest, type GetPoolDefinitionResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MaskedPoolDefinition, type MessageEnvelope, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type PoolDefinition, type PoolDefinitionAddedToProgramDefinition, type PoolDefinitionDeletedProxySupport, type PoolDefinitionRemovedFromProgramDefinition, type PoolDefinitionUpdatedProxySupport, type PoolDefinitionsQueryBuilder, type PoolDefinitionsQueryResult, type ProgramDefinitionInfo, type QueryPoolDefinitionsRequest, type QueryPoolDefinitionsResponse, type RateLimitedPolicy, type RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, type RateLimitedPolicyTypeWithLiterals, type RemovePoolDefinitionFromProgramDefinitionOptions, type RemovePoolDefinitionFromProgramDefinitionRequest, type RemovePoolDefinitionFromProgramDefinitionResponse, type RemovePoolDefinitionFromProgramDefinitionValidationErrors, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, Type, type TypeWithLiterals, type UpdatePoolDefinition, type UpdatePoolDefinitionOptions, type UpdatePoolDefinitionRequest, type UpdatePoolDefinitionResponse, type UpdatePoolDefinitionValidationErrors, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, addPoolDefinitionToProgramDefinition, bulkCreatePoolDefinitions, bulkDeletePoolDefinitions, bulkUpdatePoolDefinitions, createPoolDefinition, deletePoolDefinition, findPoolDefinitionsByProgramDefinition, getPoolDefinition, queryPoolDefinitions, removePoolDefinitionFromProgramDefinition, updatePoolDefinition };
1244
+ export { type ActionEvent, type AddPoolDefinitionToProgramDefinitionOptions, type AddPoolDefinitionToProgramDefinitionRequest, type AddPoolDefinitionToProgramDefinitionResponse, type AddPoolDefinitionToProgramDefinitionValidationErrors, type ApplicationError, type Benefit, type BulkActionMetadata, type BulkCreatePoolDefinitionsOptions, type BulkCreatePoolDefinitionsRequest, type BulkCreatePoolDefinitionsResponse, type BulkDeletePoolDefinitionsOptions, type BulkDeletePoolDefinitionsRequest, type BulkDeletePoolDefinitionsResponse, type BulkPoolDefinitionResult, type BulkUpdatePoolDefinitionsOptions, type BulkUpdatePoolDefinitionsRequest, type BulkUpdatePoolDefinitionsResponse, type BulkUpdatePoolDefinitionsValidationErrors, Cascade, type CascadeWithLiterals, type CreatePoolDefinitionOptions, type CreatePoolDefinitionRequest, type CreatePoolDefinitionResponse, type CreditConfiguration, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomPolicy, type DeletePoolDefinitionRequest, type DeletePoolDefinitionResponse, type Details, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type FindPoolDefinitionsByProgramDefinitionOptions, type FindPoolDefinitionsByProgramDefinitionRequest, type FindPoolDefinitionsByProgramDefinitionResponse, type FixedIntervalPolicy, type GetPoolDefinitionRequest, type GetPoolDefinitionResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MaskedPoolDefinition, type MessageEnvelope, type Policy, type PolicyExpression, type PolicyExpressionAnd, type PolicyExpressionExpressionOneOf, type PolicyExpressionNot, type PolicyExpressionOr, PolicyExpressionType, type PolicyExpressionTypeWithLiterals, type PolicyPolicyOneOf, type PoolDefinition, type PoolDefinitionAddedToProgramDefinition, type PoolDefinitionDeletedProxySupport, type PoolDefinitionRemovedFromProgramDefinition, type PoolDefinitionUpdatedProxySupport, type PoolDefinitionsQueryBuilder, type PoolDefinitionsQueryResult, type ProgramDefinitionInfo, type QueryPoolDefinitionsRequest, type QueryPoolDefinitionsResponse, type RateLimitedPolicy, type RateLimitedPolicyPeriodOneOf, RateLimitedPolicyType, type RateLimitedPolicyTypeWithLiterals, type RemovePoolDefinitionFromProgramDefinitionOptions, type RemovePoolDefinitionFromProgramDefinitionRequest, type RemovePoolDefinitionFromProgramDefinitionResponse, type RemovePoolDefinitionFromProgramDefinitionValidationErrors, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, Type, type TypeWithLiterals, type UpdatePoolDefinition, type UpdatePoolDefinitionOptions, type UpdatePoolDefinitionRequest, type UpdatePoolDefinitionResponse, type UpdatePoolDefinitionValidationErrors, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeekDay, type WeekDayWithLiterals, addPoolDefinitionToProgramDefinition, bulkCreatePoolDefinitions, bulkDeletePoolDefinitions, bulkUpdatePoolDefinitions, createPoolDefinition, deletePoolDefinition, findPoolDefinitionsByProgramDefinition, getPoolDefinition, queryPoolDefinitions, removePoolDefinitionFromProgramDefinition, updatePoolDefinition };
@@ -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, options) {
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: options?.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", "options"]
755
+ ["poolDefinitionId", "cascade"]
628
756
  );
629
757
  sideEffects?.onError?.(err);
630
758
  throw transformedError;