@wix/auto_sdk_benefit-programs_pool-definitions 1.0.40 → 1.0.42
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 +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +83 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +18 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +83 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +18 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +89 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +18 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +89 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +18 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
|
+
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
3
|
interface PoolDefinition {
|
|
4
4
|
/**
|
|
@@ -834,6 +834,23 @@ declare enum WebhookIdentityType {
|
|
|
834
834
|
}
|
|
835
835
|
/** @enumType */
|
|
836
836
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
837
|
+
interface AccountDetails {
|
|
838
|
+
/**
|
|
839
|
+
* ID of the account.
|
|
840
|
+
* @format GUID
|
|
841
|
+
*/
|
|
842
|
+
accountId?: string | null;
|
|
843
|
+
/**
|
|
844
|
+
* ID of the parent account.
|
|
845
|
+
* @format GUID
|
|
846
|
+
*/
|
|
847
|
+
parentAccountId?: string | null;
|
|
848
|
+
/**
|
|
849
|
+
* ID of the site, if applicable.
|
|
850
|
+
* @format GUID
|
|
851
|
+
*/
|
|
852
|
+
siteId?: string | null;
|
|
853
|
+
}
|
|
837
854
|
/** @docsIgnore */
|
|
838
855
|
type UpdatePoolDefinitionValidationErrors = {
|
|
839
856
|
ruleName?: 'cascade_is_required';
|
|
@@ -1149,7 +1166,70 @@ interface PoolDefinitionsQueryBuilder {
|
|
|
1149
1166
|
* @fqn wix.benefit_programs.v1.pool_definition.PoolDefinitionService.QueryPoolDefinitions
|
|
1150
1167
|
* @requiredField query
|
|
1151
1168
|
*/
|
|
1152
|
-
declare function typedQueryPoolDefinitions(query:
|
|
1169
|
+
declare function typedQueryPoolDefinitions(query: PoolDefinitionQuery, options?: QueryPoolDefinitionsOptions): Promise<NonNullablePaths<QueryPoolDefinitionsResponse, `poolDefinitions` | `poolDefinitions.${number}.displayName` | `poolDefinitions.${number}.details.creditConfiguration.amount`, 6>>;
|
|
1170
|
+
interface PoolDefinitionQuerySpec extends QuerySpec {
|
|
1171
|
+
paging: 'cursor';
|
|
1172
|
+
wql: [
|
|
1173
|
+
{
|
|
1174
|
+
fields: [
|
|
1175
|
+
'details.benefits.itemSetId',
|
|
1176
|
+
'details.benefits.providerAppId',
|
|
1177
|
+
'programDefinitionIds'
|
|
1178
|
+
];
|
|
1179
|
+
operators: ['$hasAll', '$hasSome'];
|
|
1180
|
+
sort: 'BOTH';
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
fields: ['_createdDate', '_id', 'namespace'];
|
|
1184
|
+
operators: '*';
|
|
1185
|
+
sort: 'BOTH';
|
|
1186
|
+
}
|
|
1187
|
+
];
|
|
1188
|
+
}
|
|
1189
|
+
type CommonQueryWithEntityContext = Query<PoolDefinition, PoolDefinitionQuerySpec>;
|
|
1190
|
+
type PoolDefinitionQuery = {
|
|
1191
|
+
/**
|
|
1192
|
+
Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
|
|
1193
|
+
*/
|
|
1194
|
+
cursorPaging?: {
|
|
1195
|
+
/**
|
|
1196
|
+
Maximum number of items to return.
|
|
1197
|
+
@max: 100
|
|
1198
|
+
*/
|
|
1199
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1200
|
+
/**
|
|
1201
|
+
Pointer to the next or previous page in the list of results.
|
|
1202
|
+
|
|
1203
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1204
|
+
Not relevant for the first request.
|
|
1205
|
+
@maxLength: 16000
|
|
1206
|
+
*/
|
|
1207
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1208
|
+
};
|
|
1209
|
+
/**
|
|
1210
|
+
Filter object.
|
|
1211
|
+
See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
1212
|
+
for more information.
|
|
1213
|
+
*/
|
|
1214
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1215
|
+
/**
|
|
1216
|
+
List of sort objects.
|
|
1217
|
+
@maxSize: 5
|
|
1218
|
+
*/
|
|
1219
|
+
sort?: {
|
|
1220
|
+
/**
|
|
1221
|
+
Field to sort by.
|
|
1222
|
+
@maxLength: 512
|
|
1223
|
+
*/
|
|
1224
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1225
|
+
/**
|
|
1226
|
+
Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
1227
|
+
|
|
1228
|
+
Default: `ASC`
|
|
1229
|
+
*/
|
|
1230
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1231
|
+
}[];
|
|
1232
|
+
};
|
|
1153
1233
|
/**
|
|
1154
1234
|
* Adds a pool definition to a program definition.
|
|
1155
1235
|
*
|
|
@@ -1223,4 +1303,4 @@ interface FindPoolDefinitionsByProgramDefinitionOptions {
|
|
|
1223
1303
|
namespace: string;
|
|
1224
1304
|
}
|
|
1225
1305
|
|
|
1226
|
-
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 QueryPoolDefinitionsOptions, type QueryPoolDefinitionsRequest, type QueryPoolDefinitionsResponse, type RateLimitedPolicy, type RemovePoolDefinitionFromProgramDefinitionOptions, type RemovePoolDefinitionFromProgramDefinitionRequest, type RemovePoolDefinitionFromProgramDefinitionResponse, type RemovePoolDefinitionFromProgramDefinitionValidationErrors, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, TimePeriod, type TimePeriodWithLiterals, 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, typedQueryPoolDefinitions, updatePoolDefinition };
|
|
1306
|
+
export { type AccountDetails, 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 CommonQueryWithEntityContext, 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 PoolDefinitionQuery, type PoolDefinitionQuerySpec, type PoolDefinitionRemovedFromProgramDefinition, type PoolDefinitionUpdatedProxySupport, type PoolDefinitionsQueryBuilder, type PoolDefinitionsQueryResult, type ProgramDefinitionInfo, type QueryPoolDefinitionsOptions, type QueryPoolDefinitionsRequest, type QueryPoolDefinitionsResponse, type RateLimitedPolicy, type RemovePoolDefinitionFromProgramDefinitionOptions, type RemovePoolDefinitionFromProgramDefinitionRequest, type RemovePoolDefinitionFromProgramDefinitionResponse, type RemovePoolDefinitionFromProgramDefinitionValidationErrors, type RestoreInfo, type RolloverConfiguration, SortOrder, type SortOrderWithLiterals, type Sorting, TimePeriod, type TimePeriodWithLiterals, 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, typedQueryPoolDefinitions, updatePoolDefinition };
|