@wix/auto_sdk_benefit-programs_pool-definitions 1.0.40 → 1.0.41
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 +66 -3
- package/build/cjs/index.typings.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 +66 -3
- package/build/es/index.typings.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 +72 -3
- package/build/internal/cjs/index.typings.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 +72 -3
- package/build/internal/es/index.typings.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
|
/**
|
|
@@ -309,6 +309,12 @@ interface CreditConfiguration {
|
|
|
309
309
|
* @maxLength 32
|
|
310
310
|
*/
|
|
311
311
|
unitDisplayName?: string | null;
|
|
312
|
+
/**
|
|
313
|
+
* Credit unit type.
|
|
314
|
+
* @internal
|
|
315
|
+
* @maxLength 16
|
|
316
|
+
*/
|
|
317
|
+
unitType?: string | null;
|
|
312
318
|
}
|
|
313
319
|
interface RolloverConfiguration {
|
|
314
320
|
/** Whether unused credits roll over to a new cycle when a program renews. */
|
|
@@ -1161,7 +1167,70 @@ interface PoolDefinitionsQueryBuilder {
|
|
|
1161
1167
|
* @fqn wix.benefit_programs.v1.pool_definition.PoolDefinitionService.QueryPoolDefinitions
|
|
1162
1168
|
* @requiredField query
|
|
1163
1169
|
*/
|
|
1164
|
-
declare function typedQueryPoolDefinitions(query:
|
|
1170
|
+
declare function typedQueryPoolDefinitions(query: PoolDefinitionQuery, options?: QueryPoolDefinitionsOptions): Promise<NonNullablePaths<QueryPoolDefinitionsResponse, `poolDefinitions` | `poolDefinitions.${number}.displayName` | `poolDefinitions.${number}.details.creditConfiguration.amount`, 6>>;
|
|
1171
|
+
interface PoolDefinitionQuerySpec extends QuerySpec {
|
|
1172
|
+
paging: 'cursor';
|
|
1173
|
+
wql: [
|
|
1174
|
+
{
|
|
1175
|
+
fields: [
|
|
1176
|
+
'details.benefits.itemSetId',
|
|
1177
|
+
'details.benefits.providerAppId',
|
|
1178
|
+
'programDefinitionIds'
|
|
1179
|
+
];
|
|
1180
|
+
operators: ['$hasAll', '$hasSome'];
|
|
1181
|
+
sort: 'BOTH';
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
fields: ['_createdDate', '_id', 'namespace'];
|
|
1185
|
+
operators: '*';
|
|
1186
|
+
sort: 'BOTH';
|
|
1187
|
+
}
|
|
1188
|
+
];
|
|
1189
|
+
}
|
|
1190
|
+
type CommonQueryWithEntityContext = Query<PoolDefinition, PoolDefinitionQuerySpec>;
|
|
1191
|
+
type PoolDefinitionQuery = {
|
|
1192
|
+
/**
|
|
1193
|
+
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`.
|
|
1194
|
+
*/
|
|
1195
|
+
cursorPaging?: {
|
|
1196
|
+
/**
|
|
1197
|
+
Maximum number of items to return.
|
|
1198
|
+
@max: 100
|
|
1199
|
+
*/
|
|
1200
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1201
|
+
/**
|
|
1202
|
+
Pointer to the next or previous page in the list of results.
|
|
1203
|
+
|
|
1204
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1205
|
+
Not relevant for the first request.
|
|
1206
|
+
@maxLength: 16000
|
|
1207
|
+
*/
|
|
1208
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
Filter object.
|
|
1212
|
+
See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
1213
|
+
for more information.
|
|
1214
|
+
*/
|
|
1215
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1216
|
+
/**
|
|
1217
|
+
List of sort objects.
|
|
1218
|
+
@maxSize: 5
|
|
1219
|
+
*/
|
|
1220
|
+
sort?: {
|
|
1221
|
+
/**
|
|
1222
|
+
Field to sort by.
|
|
1223
|
+
@maxLength: 512
|
|
1224
|
+
*/
|
|
1225
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1226
|
+
/**
|
|
1227
|
+
Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
1228
|
+
|
|
1229
|
+
Default: `ASC`
|
|
1230
|
+
*/
|
|
1231
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1232
|
+
}[];
|
|
1233
|
+
};
|
|
1165
1234
|
/**
|
|
1166
1235
|
* Adds a pool definition to a program definition.
|
|
1167
1236
|
*
|
|
@@ -1235,4 +1304,4 @@ interface FindPoolDefinitionsByProgramDefinitionOptions {
|
|
|
1235
1304
|
namespace: string;
|
|
1236
1305
|
}
|
|
1237
1306
|
|
|
1238
|
-
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 };
|
|
1307
|
+
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 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 };
|