@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 };
@@ -14,7 +14,138 @@ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transform
14
14
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
15
15
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
16
16
  function resolveWixBenefitProgramsV1PoolDefinitionPoolDefinitionServiceUrl(opts) {
17
- const domainToMappings = {};
17
+ const domainToMappings = {
18
+ "api._api_base_domain_": [
19
+ {
20
+ srcPath: "/pool-definitions",
21
+ destPath: ""
22
+ }
23
+ ],
24
+ "*.dev.wix-code.com": [
25
+ {
26
+ srcPath: "/_api/benefit-programs-pool-definitions",
27
+ destPath: ""
28
+ },
29
+ {
30
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
31
+ destPath: "/v1/pool-definitions"
32
+ },
33
+ {
34
+ srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
35
+ destPath: "/v1/bulk/pool-definitions"
36
+ }
37
+ ],
38
+ "*.pub.wix-code.com": [
39
+ {
40
+ srcPath: "/_api/benefit-programs-pool-definitions",
41
+ destPath: ""
42
+ }
43
+ ],
44
+ _: [
45
+ {
46
+ srcPath: "/_api/benefit-programs-pool-definitions",
47
+ destPath: ""
48
+ }
49
+ ],
50
+ "editor._base_domain_": [
51
+ {
52
+ srcPath: "/_api/benefit-programs-pool-definitions",
53
+ destPath: ""
54
+ },
55
+ {
56
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
57
+ destPath: "/v1/pool-definitions"
58
+ },
59
+ {
60
+ srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
61
+ destPath: "/v1/bulk/pool-definitions"
62
+ }
63
+ ],
64
+ "blocks._base_domain_": [
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
+ "create.editorx": [
79
+ {
80
+ srcPath: "/_api/benefit-programs-pool-definitions",
81
+ destPath: ""
82
+ },
83
+ {
84
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
85
+ destPath: "/v1/pool-definitions"
86
+ },
87
+ {
88
+ srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
89
+ destPath: "/v1/bulk/pool-definitions"
90
+ }
91
+ ],
92
+ "editor.wixapps.net": [
93
+ {
94
+ srcPath: "/_api/benefit-programs-pool-definitions",
95
+ destPath: ""
96
+ },
97
+ {
98
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
99
+ destPath: "/v1/pool-definitions"
100
+ },
101
+ {
102
+ srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
103
+ destPath: "/v1/bulk/pool-definitions"
104
+ }
105
+ ],
106
+ "manage._base_domain_": [
107
+ {
108
+ srcPath: "/_api/benefit-programs-pool-definitions",
109
+ destPath: ""
110
+ },
111
+ {
112
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
113
+ destPath: "/v1/pool-definitions"
114
+ },
115
+ {
116
+ srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
117
+ destPath: "/v1/bulk/pool-definitions"
118
+ }
119
+ ],
120
+ "www._base_domain_": [
121
+ {
122
+ srcPath: "/_api/benefit-programs-pool-definitions",
123
+ destPath: ""
124
+ },
125
+ {
126
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
127
+ destPath: "/v1/pool-definitions"
128
+ },
129
+ {
130
+ srcPath: "/_api/benefit-programs/v1/bulk/pool-definitions",
131
+ destPath: "/v1/bulk/pool-definitions"
132
+ }
133
+ ],
134
+ "www.wixapis.com": [
135
+ {
136
+ srcPath: "/_api/benefit-programs/v1/pool-definitions",
137
+ destPath: "/v1/pool-definitions"
138
+ },
139
+ {
140
+ srcPath: "/benefit-programs/v1/pool-definitions",
141
+ destPath: "/v1/pool-definitions"
142
+ },
143
+ {
144
+ srcPath: "/benefit-programs/v1/bulk/pool-definitions",
145
+ destPath: "/v1/bulk/pool-definitions"
146
+ }
147
+ ]
148
+ };
18
149
  return resolveUrl(Object.assign(opts, { domainToMappings }));
19
150
  }
20
151
  var PACKAGE_NAME = "@wix/auto_sdk_benefit-programs_pool-definitions";
@@ -562,11 +693,11 @@ async function bulkUpdatePoolDefinitions2(options) {
562
693
  throw transformedError;
563
694
  }
564
695
  }
565
- async function deletePoolDefinition2(poolDefinitionId, options) {
696
+ async function deletePoolDefinition2(poolDefinitionId, cascade) {
566
697
  const { httpClient, sideEffects } = arguments[2];
567
698
  const payload = renameKeysFromSDKRequestToRESTRequest({
568
699
  poolDefinitionId,
569
- cascade: options?.cascade
700
+ cascade
570
701
  });
571
702
  const reqOpts = deletePoolDefinition(payload);
572
703
  sideEffects?.onSiteCall?.();
@@ -578,13 +709,10 @@ async function deletePoolDefinition2(poolDefinitionId, options) {
578
709
  err,
579
710
  {
580
711
  spreadPathsToArguments: {},
581
- explicitPathsToArguments: {
582
- poolDefinitionId: "$[0]",
583
- cascade: "$[1].cascade"
584
- },
712
+ explicitPathsToArguments: { poolDefinitionId: "$[0]", cascade: "$[1]" },
585
713
  singleArgumentUnchanged: false
586
714
  },
587
- ["poolDefinitionId", "options"]
715
+ ["poolDefinitionId", "cascade"]
588
716
  );
589
717
  sideEffects?.onError?.(err);
590
718
  throw transformedError;