@wix/auto_sdk_benefit-programs_program-definitions 1.0.52 → 1.0.53
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.js +2 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -9
- package/build/cjs/index.typings.js +1 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +12 -12
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +2 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -9
- package/build/es/index.typings.mjs +1 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +12 -12
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +2 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +39 -9
- package/build/internal/cjs/index.typings.js +1 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +72 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +12 -12
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +2 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +39 -9
- package/build/internal/es/index.typings.mjs +1 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +72 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +12 -12
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.http.ts","../../../src/benefit-programs-v1-program-definition-program-definitions.types.ts","../../../src/benefit-programs-v1-program-definition-program-definitions.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/program-definitions',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n {\n srcPath: '/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_program-definitions';\n\n/** Creates a program definition. */\nexport function createProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __createProgramDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.CreateProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n { protoPath: '/v1/program-definitions', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProgramDefinition;\n}\n\n/**\n * Updates a program definition.\n *\n * Each time the program definition is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the program definition.\n * This ensures you're working with the latest program definition\n * and prevents unintended overwrites.\n */\nexport function updateProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateProgramDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.UpdateProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/{programDefinition.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProgramDefinition;\n}\n\n/** Deletes a program definition. */\nexport function deleteProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteProgramDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.DeleteProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/{programDefinitionId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProgramDefinition;\n}\n\n/** Retrieves a program definition. */\nexport function getProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __getProgramDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/{programDefinitionId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProgramDefinition;\n}\n\n/** Retrieves a program definition with the specified external ID and namespace. */\nexport function getProgramDefinitionByExternalIdAndNamespace(\n payload: object\n): RequestOptionsFactory<any> {\n function __getProgramDefinitionByExternalIdAndNamespace({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinitionByExternalIdAndNamespace',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/by-namespace-and-external-id',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProgramDefinitionByExternalIdAndNamespace;\n}\n\n/**\n * Creates a query to retrieve a list of program definitions.\n *\n * The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Program Definitions returns.\n *\n * Query Program Definitions has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.\n */\nexport function queryProgramDefinitions(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryProgramDefinitions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.QueryProgramDefinitions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n { protoPath: '/v1/program-definitions/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinitions.createdDate' },\n { path: 'programDefinitions.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryProgramDefinitions;\n}\n","export interface ProgramDefinition {\n /**\n * Program definition ID.\n * @format GUID\n * @immutable\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the program definition is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the program definition.\n *\n * Ignored when creating a program definition.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the program definition was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the program definition was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Program definition name.\n * @maxLength 64\n */\n displayName?: string | null;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @immutable\n * @readonly\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string | null;\n /**\n * Custom field data for the program definition object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * ID for the program definition defined by you. You can use `externalId` to filter queries.\n * @format GUID\n * @immutable\n * @readonly\n */\n externalId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface ProgramDefinitionTranslated {\n /** The translated program definition. */\n programDefinition?: ProgramDefinition;\n /**\n * The language code of the translation.\n * @maxLength 20\n * @format LANGUAGE_TAG\n */\n language?: string;\n}\n\nexport interface ProgramDefinitionTranslationDeleted {\n /**\n * The ID of the program definition.\n * @format GUID\n */\n programDefinitionId?: string;\n /**\n * The language code of the translation.\n * @maxLength 20\n * @format LANGUAGE_TAG\n */\n language?: string;\n}\n\nexport interface CreateProgramDefinitionRequest {\n /** Program definition to create. */\n programDefinition: ProgramDefinition;\n}\n\nexport interface CreateProgramDefinitionResponse {\n /** Created program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface UpdateProgramDefinitionRequest {\n /** Program definition to update. */\n programDefinition: ProgramDefinition;\n}\n\nexport interface UpdateProgramDefinitionResponse {\n /** Updated program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface DeleteProgramDefinitionRequest {\n /**\n * ID of the program definition to delete.\n * @format GUID\n */\n programDefinitionId: string;\n /** Determines when the changes to this program definition will be applied to associated programs and pools. */\n cascadeType?: CascadeWithLiterals;\n}\n\nexport enum Cascade {\n /** Unknown cascade. */\n UNKNOWN_CASCADE = 'UNKNOWN_CASCADE',\n /** Changes are applied to existing programs and pools when they are next renewed. */\n NEXT_RENEWAL = 'NEXT_RENEWAL',\n /** Changes are applied to associated programs and pools immediately. */\n IMMEDIATELY = 'IMMEDIATELY',\n /** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */\n FUTURE_PROVISIONS = 'FUTURE_PROVISIONS',\n}\n\n/** @enumType */\nexport type CascadeWithLiterals =\n | Cascade\n | 'UNKNOWN_CASCADE'\n | 'NEXT_RENEWAL'\n | 'IMMEDIATELY'\n | 'FUTURE_PROVISIONS';\n\nexport interface DeleteProgramDefinitionResponse {}\n\nexport interface GetProgramDefinitionRequest {\n /**\n * ID of the program definition to retrieve.\n * @format GUID\n */\n programDefinitionId: string;\n}\n\nexport interface GetProgramDefinitionResponse {\n /** Retrieved program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface GetProgramDefinitionByExternalIdAndNamespaceRequest {\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /**\n * Program definition external ID.\n * @format GUID\n */\n externalId: string;\n}\n\nexport interface GetProgramDefinitionByExternalIdAndNamespaceResponse {\n /** Retrieved program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface QueryProgramDefinitionsRequest {\n /** Filter, sort, and paging to apply to the query. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`\n */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n /** Ascending sort order. */\n ASC = 'ASC',\n /** Descending sort order. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryProgramDefinitionsResponse {\n /** List of retrieved program definitions. */\n programDefinitions?: ProgramDefinition[];\n /** Metadata for the paginated results. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpsertProgramDefinitionRequest {\n /** Program definition to be created or updated. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface UpsertProgramDefinitionResponse {\n /** Created or updated program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface GetOrCreateProgramDefinitionRequest {\n /**\n * Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string;\n /**\n * External program definition ID.\n * @format GUID\n */\n externalId?: string;\n}\n\nexport interface GetOrCreateProgramDefinitionResponse {\n /** The created or updated program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixBenefitProgramsV1ProgramDefinition from './benefit-programs-v1-program-definition-program-definitions.http.js';\nimport * as ambassadorWixBenefitProgramsV1ProgramDefinitionTypes from './benefit-programs-v1-program-definition-program-definitions.types.js';\nimport * as ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes from './benefit-programs-v1-program-definition-program-definitions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createProgramDefinition(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.CreateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.CreateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.CreateProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.CreateProgramDefinitionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.createProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/program-definitions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateProgramDefinition(): __PublicMethodMetaInfo<\n 'PATCH',\n { programDefinitionId: string },\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.UpdateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.UpdateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.UpdateProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.UpdateProgramDefinitionResponse\n> {\n const payload = { programDefinition: { id: ':programDefinitionId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.updateProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/program-definitions/{programDefinition.id}',\n pathParams: { programDefinitionId: 'programDefinitionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteProgramDefinition(): __PublicMethodMetaInfo<\n 'DELETE',\n { programDefinitionId: string },\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.DeleteProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.DeleteProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.DeleteProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.DeleteProgramDefinitionResponse\n> {\n const payload = { programDefinitionId: ':programDefinitionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.deleteProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/program-definitions/{programDefinitionId}',\n pathParams: { programDefinitionId: 'programDefinitionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getProgramDefinition(): __PublicMethodMetaInfo<\n 'GET',\n { programDefinitionId: string },\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionResponse\n> {\n const payload = { programDefinitionId: ':programDefinitionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.getProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/program-definitions/{programDefinitionId}',\n pathParams: { programDefinitionId: 'programDefinitionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getProgramDefinitionByExternalIdAndNamespace(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionByExternalIdAndNamespaceRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionByExternalIdAndNamespaceRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionByExternalIdAndNamespaceResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionByExternalIdAndNamespaceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.getProgramDefinitionByExternalIdAndNamespace(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/program-definitions/by-namespace-and-external-id',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryProgramDefinitions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.QueryProgramDefinitionsRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.QueryProgramDefinitionsRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.QueryProgramDefinitionsResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.QueryProgramDefinitionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.queryProgramDefinitions(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/program-definitions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n ProgramDefinition as ProgramDefinitionOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n ProgramDefinitionTranslated as ProgramDefinitionTranslatedOriginal,\n ProgramDefinitionTranslationDeleted as ProgramDefinitionTranslationDeletedOriginal,\n CreateProgramDefinitionRequest as CreateProgramDefinitionRequestOriginal,\n CreateProgramDefinitionResponse as CreateProgramDefinitionResponseOriginal,\n UpdateProgramDefinitionRequest as UpdateProgramDefinitionRequestOriginal,\n UpdateProgramDefinitionResponse as UpdateProgramDefinitionResponseOriginal,\n DeleteProgramDefinitionRequest as DeleteProgramDefinitionRequestOriginal,\n Cascade as CascadeOriginal,\n CascadeWithLiterals as CascadeWithLiteralsOriginal,\n DeleteProgramDefinitionResponse as DeleteProgramDefinitionResponseOriginal,\n GetProgramDefinitionRequest as GetProgramDefinitionRequestOriginal,\n GetProgramDefinitionResponse as GetProgramDefinitionResponseOriginal,\n GetProgramDefinitionByExternalIdAndNamespaceRequest as GetProgramDefinitionByExternalIdAndNamespaceRequestOriginal,\n GetProgramDefinitionByExternalIdAndNamespaceResponse as GetProgramDefinitionByExternalIdAndNamespaceResponseOriginal,\n QueryProgramDefinitionsRequest as QueryProgramDefinitionsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryProgramDefinitionsResponse as QueryProgramDefinitionsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpsertProgramDefinitionRequest as UpsertProgramDefinitionRequestOriginal,\n UpsertProgramDefinitionResponse as UpsertProgramDefinitionResponseOriginal,\n GetOrCreateProgramDefinitionRequest as GetOrCreateProgramDefinitionRequestOriginal,\n GetOrCreateProgramDefinitionResponse as GetOrCreateProgramDefinitionResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './benefit-programs-v1-program-definition-program-definitions.types.js';\n"],"mappings":";AAAA,SAAS,yBAA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AEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Cascade","SortOrder","WebhookIdentityType","createProgramDefinition","updateProgramDefinition","deleteProgramDefinition","getProgramDefinition","getProgramDefinitionByExternalIdAndNamespace","queryProgramDefinitions"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.http.ts","../../../src/benefit-programs-v1-program-definition-program-definitions.types.ts","../../../src/benefit-programs-v1-program-definition-program-definitions.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/program-definitions',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/benefit-programs-program-definitions',\n destPath: '',\n },\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n {\n srcPath: '/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/benefit-programs/v1/program-definitions',\n destPath: '/v1/program-definitions',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_program-definitions';\n\n/** Creates a program definition. */\nexport function createProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __createProgramDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.CreateProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n { protoPath: '/v1/program-definitions', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProgramDefinition;\n}\n\n/**\n * Updates a program definition.\n *\n * Each time the program definition is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the program definition.\n * This ensures you're working with the latest program definition\n * and prevents unintended overwrites.\n */\nexport function updateProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateProgramDefinition({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.UpdateProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/{programDefinition.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProgramDefinition;\n}\n\n/** Deletes a program definition. */\nexport function deleteProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteProgramDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.DeleteProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/{programDefinitionId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProgramDefinition;\n}\n\n/** Retrieves a program definition. */\nexport function getProgramDefinition(\n payload: object\n): RequestOptionsFactory<any> {\n function __getProgramDefinition({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinition',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/{programDefinitionId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProgramDefinition;\n}\n\n/** Retrieves a program definition with the specified external ID and namespace. */\nexport function getProgramDefinitionByExternalIdAndNamespace(\n payload: object\n): RequestOptionsFactory<any> {\n function __getProgramDefinitionByExternalIdAndNamespace({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'GET' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.GetProgramDefinitionByExternalIdAndNamespace',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n {\n protoPath: '/v1/program-definitions/by-namespace-and-external-id',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinition.createdDate' },\n { path: 'programDefinition.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProgramDefinitionByExternalIdAndNamespace;\n}\n\n/**\n * Creates a query to retrieve a list of program definitions.\n *\n * The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Program Definitions returns.\n *\n * Query Program Definitions has a default paging limit of 50, which you can override.\n *\n * For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.\n */\nexport function queryProgramDefinitions(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryProgramDefinitions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.benefit_programs.v1.program_definition',\n method: 'POST' as any,\n methodFqn:\n 'wix.benefit_programs.v1.program_definition.ProgramDefinitionService.QueryProgramDefinitions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl(\n { protoPath: '/v1/program-definitions/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programDefinitions.createdDate' },\n { path: 'programDefinitions.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryProgramDefinitions;\n}\n","export interface ProgramDefinition {\n /**\n * Program definition ID.\n * @format GUID\n * @immutable\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the program definition is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the program definition.\n *\n * Ignored when creating a program definition.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the program definition was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the program definition was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Program definition name.\n * @maxLength 64\n */\n displayName?: string | null;\n /**\n * Program definition description.\n * @internal\n * @maxLength 450\n */\n description?: string | null;\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @immutable\n * @readonly\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string | null;\n /**\n * Custom field data for the program definition object.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * ID for the program definition defined by you. You can use `externalId` to filter queries.\n * @format GUID\n * @immutable\n * @readonly\n */\n externalId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface ProgramDefinitionTranslated {\n /** The translated program definition. */\n programDefinition?: ProgramDefinition;\n /**\n * The language code of the translation.\n * @maxLength 20\n * @format LANGUAGE_TAG\n */\n language?: string;\n}\n\nexport interface ProgramDefinitionTranslationDeleted {\n /**\n * The ID of the program definition.\n * @format GUID\n */\n programDefinitionId?: string;\n /**\n * The language code of the translation.\n * @maxLength 20\n * @format LANGUAGE_TAG\n */\n language?: string;\n}\n\nexport interface CreateProgramDefinitionRequest {\n /** Program definition to create. */\n programDefinition: ProgramDefinition;\n}\n\nexport interface CreateProgramDefinitionResponse {\n /** Created program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface UpdateProgramDefinitionRequest {\n /** Program definition to update. */\n programDefinition: ProgramDefinition;\n /**\n * Explicit list of fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateProgramDefinitionResponse {\n /** Updated program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface DeleteProgramDefinitionRequest {\n /**\n * ID of the program definition to delete.\n * @format GUID\n */\n programDefinitionId: string;\n /** Determines when the changes to this program definition will be applied to associated programs and pools. */\n cascadeType?: CascadeWithLiterals;\n}\n\nexport enum Cascade {\n /** Unknown cascade. */\n UNKNOWN_CASCADE = 'UNKNOWN_CASCADE',\n /** Changes are applied to existing programs and pools when they are next renewed. */\n NEXT_RENEWAL = 'NEXT_RENEWAL',\n /** Changes are applied to associated programs and pools immediately. */\n IMMEDIATELY = 'IMMEDIATELY',\n /** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */\n FUTURE_PROVISIONS = 'FUTURE_PROVISIONS',\n}\n\n/** @enumType */\nexport type CascadeWithLiterals =\n | Cascade\n | 'UNKNOWN_CASCADE'\n | 'NEXT_RENEWAL'\n | 'IMMEDIATELY'\n | 'FUTURE_PROVISIONS';\n\nexport interface DeleteProgramDefinitionResponse {}\n\nexport interface GetProgramDefinitionRequest {\n /**\n * ID of the program definition to retrieve.\n * @format GUID\n */\n programDefinitionId: string;\n}\n\nexport interface GetProgramDefinitionResponse {\n /** Retrieved program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface GetProgramDefinitionByExternalIdAndNamespaceRequest {\n /**\n * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\n * @minLength 1\n * @maxLength 20\n */\n namespace: string;\n /**\n * Program definition external ID.\n * @format GUID\n */\n externalId: string;\n}\n\nexport interface GetProgramDefinitionByExternalIdAndNamespaceResponse {\n /** Retrieved program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface QueryProgramDefinitionsRequest {\n /** Filter, sort, and paging to apply to the query. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`\n */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n}\n\nexport enum SortOrder {\n /** Ascending sort order. */\n ASC = 'ASC',\n /** Descending sort order. */\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryProgramDefinitionsResponse {\n /** List of retrieved program definitions. */\n programDefinitions?: ProgramDefinition[];\n /** Metadata for the paginated results. */\n metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpsertProgramDefinitionRequest {\n /** Program definition to be created or updated. */\n programDefinition?: ProgramDefinition;\n /**\n * Explicit list of fields to update\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpsertProgramDefinitionResponse {\n /** Created or updated program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface GetOrCreateProgramDefinitionRequest {\n /**\n * Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.\n * @minLength 1\n * @maxLength 20\n */\n namespace?: string;\n /**\n * External program definition ID.\n * @format GUID\n */\n externalId?: string;\n}\n\nexport interface GetOrCreateProgramDefinitionResponse {\n /** The created or updated program definition. */\n programDefinition?: ProgramDefinition;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n","import * as ambassadorWixBenefitProgramsV1ProgramDefinition from './benefit-programs-v1-program-definition-program-definitions.http.js';\nimport * as ambassadorWixBenefitProgramsV1ProgramDefinitionTypes from './benefit-programs-v1-program-definition-program-definitions.types.js';\nimport * as ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes from './benefit-programs-v1-program-definition-program-definitions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createProgramDefinition(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.CreateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.CreateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.CreateProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.CreateProgramDefinitionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.createProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/program-definitions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateProgramDefinition(): __PublicMethodMetaInfo<\n 'PATCH',\n { programDefinitionId: string },\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.UpdateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.UpdateProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.UpdateProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.UpdateProgramDefinitionResponse\n> {\n const payload = { programDefinition: { id: ':programDefinitionId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.updateProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/program-definitions/{programDefinition.id}',\n pathParams: { programDefinitionId: 'programDefinitionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteProgramDefinition(): __PublicMethodMetaInfo<\n 'DELETE',\n { programDefinitionId: string },\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.DeleteProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.DeleteProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.DeleteProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.DeleteProgramDefinitionResponse\n> {\n const payload = { programDefinitionId: ':programDefinitionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.deleteProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/program-definitions/{programDefinitionId}',\n pathParams: { programDefinitionId: 'programDefinitionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getProgramDefinition(): __PublicMethodMetaInfo<\n 'GET',\n { programDefinitionId: string },\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionResponse\n> {\n const payload = { programDefinitionId: ':programDefinitionId' } as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.getProgramDefinition(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/program-definitions/{programDefinitionId}',\n pathParams: { programDefinitionId: 'programDefinitionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getProgramDefinitionByExternalIdAndNamespace(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionByExternalIdAndNamespaceRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionByExternalIdAndNamespaceRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.GetProgramDefinitionByExternalIdAndNamespaceResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.GetProgramDefinitionByExternalIdAndNamespaceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.getProgramDefinitionByExternalIdAndNamespace(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/program-definitions/by-namespace-and-external-id',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryProgramDefinitions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.QueryProgramDefinitionsRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.QueryProgramDefinitionsRequest,\n ambassadorWixBenefitProgramsV1ProgramDefinitionUniversalTypes.QueryProgramDefinitionsResponse,\n ambassadorWixBenefitProgramsV1ProgramDefinitionTypes.QueryProgramDefinitionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBenefitProgramsV1ProgramDefinition.queryProgramDefinitions(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/program-definitions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n ProgramDefinition as ProgramDefinitionOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n ProgramDefinitionTranslated as ProgramDefinitionTranslatedOriginal,\n ProgramDefinitionTranslationDeleted as ProgramDefinitionTranslationDeletedOriginal,\n CreateProgramDefinitionRequest as CreateProgramDefinitionRequestOriginal,\n CreateProgramDefinitionResponse as CreateProgramDefinitionResponseOriginal,\n UpdateProgramDefinitionRequest as UpdateProgramDefinitionRequestOriginal,\n UpdateProgramDefinitionResponse as UpdateProgramDefinitionResponseOriginal,\n DeleteProgramDefinitionRequest as DeleteProgramDefinitionRequestOriginal,\n Cascade as CascadeOriginal,\n CascadeWithLiterals as CascadeWithLiteralsOriginal,\n DeleteProgramDefinitionResponse as DeleteProgramDefinitionResponseOriginal,\n GetProgramDefinitionRequest as GetProgramDefinitionRequestOriginal,\n GetProgramDefinitionResponse as GetProgramDefinitionResponseOriginal,\n GetProgramDefinitionByExternalIdAndNamespaceRequest as GetProgramDefinitionByExternalIdAndNamespaceRequestOriginal,\n GetProgramDefinitionByExternalIdAndNamespaceResponse as GetProgramDefinitionByExternalIdAndNamespaceResponseOriginal,\n QueryProgramDefinitionsRequest as QueryProgramDefinitionsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryProgramDefinitionsResponse as QueryProgramDefinitionsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpsertProgramDefinitionRequest as UpsertProgramDefinitionRequestOriginal,\n UpsertProgramDefinitionResponse as UpsertProgramDefinitionResponseOriginal,\n GetOrCreateProgramDefinitionRequest as GetOrCreateProgramDefinitionRequestOriginal,\n GetOrCreateProgramDefinitionResponse as GetOrCreateProgramDefinitionResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n} from './benefit-programs-v1-program-definition-program-definitions.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;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A,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC4C;AAAA,IAC9C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Cascade","SortOrder","WebhookIdentityType","createProgramDefinition","updateProgramDefinition","deleteProgramDefinition","getProgramDefinition","getProgramDefinitionByExternalIdAndNamespace","queryProgramDefinitions"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/benefit-programs-v1-program-definition-program-definitions.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
var CreateProgramDefinitionRequest = z.object({
|
|
3
|
+
var CreateProgramDefinitionRequest = /* @__PURE__ */ z.object({
|
|
4
4
|
programDefinition: z.object({
|
|
5
5
|
_id: z.string().describe("Program definition ID.").regex(
|
|
6
6
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -30,7 +30,7 @@ var CreateProgramDefinitionRequest = z.object({
|
|
|
30
30
|
)
|
|
31
31
|
}).describe("Program definition to create.")
|
|
32
32
|
});
|
|
33
|
-
var CreateProgramDefinitionResponse = z.object({
|
|
33
|
+
var CreateProgramDefinitionResponse = /* @__PURE__ */ z.object({
|
|
34
34
|
_id: z.string().describe("Program definition ID.").regex(
|
|
35
35
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
36
36
|
"Must be a valid GUID"
|
|
@@ -58,7 +58,7 @@ var CreateProgramDefinitionResponse = z.object({
|
|
|
58
58
|
"Must be a valid GUID"
|
|
59
59
|
).optional().nullable()
|
|
60
60
|
});
|
|
61
|
-
var UpdateProgramDefinitionRequest = z.object({
|
|
61
|
+
var UpdateProgramDefinitionRequest = /* @__PURE__ */ z.object({
|
|
62
62
|
_id: z.string().describe("Program definition ID.").regex(
|
|
63
63
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
64
64
|
"Must be a valid GUID"
|
|
@@ -92,7 +92,7 @@ var UpdateProgramDefinitionRequest = z.object({
|
|
|
92
92
|
).optional().nullable()
|
|
93
93
|
}).describe("Program definition to update.")
|
|
94
94
|
});
|
|
95
|
-
var UpdateProgramDefinitionResponse = z.object({
|
|
95
|
+
var UpdateProgramDefinitionResponse = /* @__PURE__ */ z.object({
|
|
96
96
|
_id: z.string().describe("Program definition ID.").regex(
|
|
97
97
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
98
98
|
"Must be a valid GUID"
|
|
@@ -120,7 +120,7 @@ var UpdateProgramDefinitionResponse = z.object({
|
|
|
120
120
|
"Must be a valid GUID"
|
|
121
121
|
).optional().nullable()
|
|
122
122
|
});
|
|
123
|
-
var DeleteProgramDefinitionRequest = z.object({
|
|
123
|
+
var DeleteProgramDefinitionRequest = /* @__PURE__ */ z.object({
|
|
124
124
|
programDefinitionId: z.string().describe("ID of the program definition to delete.").regex(
|
|
125
125
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
126
126
|
"Must be a valid GUID"
|
|
@@ -134,14 +134,14 @@ var DeleteProgramDefinitionRequest = z.object({
|
|
|
134
134
|
]).optional()
|
|
135
135
|
}).optional()
|
|
136
136
|
});
|
|
137
|
-
var DeleteProgramDefinitionResponse = z.object({});
|
|
138
|
-
var GetProgramDefinitionRequest = z.object({
|
|
137
|
+
var DeleteProgramDefinitionResponse = /* @__PURE__ */ z.object({});
|
|
138
|
+
var GetProgramDefinitionRequest = /* @__PURE__ */ z.object({
|
|
139
139
|
programDefinitionId: z.string().describe("ID of the program definition to retrieve.").regex(
|
|
140
140
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
141
141
|
"Must be a valid GUID"
|
|
142
142
|
)
|
|
143
143
|
});
|
|
144
|
-
var GetProgramDefinitionResponse = z.object({
|
|
144
|
+
var GetProgramDefinitionResponse = /* @__PURE__ */ z.object({
|
|
145
145
|
_id: z.string().describe("Program definition ID.").regex(
|
|
146
146
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
147
147
|
"Must be a valid GUID"
|
|
@@ -169,7 +169,7 @@ var GetProgramDefinitionResponse = z.object({
|
|
|
169
169
|
"Must be a valid GUID"
|
|
170
170
|
).optional().nullable()
|
|
171
171
|
});
|
|
172
|
-
var GetProgramDefinitionByExternalIdAndNamespaceRequest = z.object({
|
|
172
|
+
var GetProgramDefinitionByExternalIdAndNamespaceRequest = /* @__PURE__ */ z.object({
|
|
173
173
|
namespace: z.string().describe(
|
|
174
174
|
"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created."
|
|
175
175
|
).min(1).max(20),
|
|
@@ -180,7 +180,7 @@ var GetProgramDefinitionByExternalIdAndNamespaceRequest = z.object({
|
|
|
180
180
|
)
|
|
181
181
|
})
|
|
182
182
|
});
|
|
183
|
-
var GetProgramDefinitionByExternalIdAndNamespaceResponse = z.object({
|
|
183
|
+
var GetProgramDefinitionByExternalIdAndNamespaceResponse = /* @__PURE__ */ z.object({
|
|
184
184
|
programDefinition: z.object({
|
|
185
185
|
_id: z.string().describe("Program definition ID.").regex(
|
|
186
186
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -210,7 +210,7 @@ var GetProgramDefinitionByExternalIdAndNamespaceResponse = z.object({
|
|
|
210
210
|
).optional().nullable()
|
|
211
211
|
}).describe("Retrieved program definition.").optional()
|
|
212
212
|
});
|
|
213
|
-
var QueryProgramDefinitionsRequest = z.object({
|
|
213
|
+
var QueryProgramDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
214
214
|
query: z.object({
|
|
215
215
|
filter: z.object({
|
|
216
216
|
_id: z.object({
|
|
@@ -281,7 +281,7 @@ var QueryProgramDefinitionsRequest = z.object({
|
|
|
281
281
|
).optional()
|
|
282
282
|
}).catchall(z.any()).describe("Filter, sort, and paging to apply to the query.")
|
|
283
283
|
});
|
|
284
|
-
var QueryProgramDefinitionsResponse = z.object({
|
|
284
|
+
var QueryProgramDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
285
285
|
programDefinitions: z.array(
|
|
286
286
|
z.object({
|
|
287
287
|
_id: z.string().describe("Program definition ID.").regex(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateProgramDefinitionRequest = z.object({\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n })\n .describe('Program definition to create.'),\n});\nexport const CreateProgramDefinitionResponse = z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const UpdateProgramDefinitionRequest = z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n ),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .describe('Program definition to update.'),\n});\nexport const UpdateProgramDefinitionResponse = z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const DeleteProgramDefinitionRequest = z.object({\n programDefinitionId: z\n .string()\n .describe('ID of the program definition to delete.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n cascadeType: z\n .enum([\n 'UNKNOWN_CASCADE',\n 'IMMEDIATELY',\n 'NEXT_RENEWAL',\n 'FUTURE_PROVISIONS',\n ])\n .optional(),\n })\n .optional(),\n});\nexport const DeleteProgramDefinitionResponse = z.object({});\nexport const GetProgramDefinitionRequest = z.object({\n programDefinitionId: z\n .string()\n .describe('ID of the program definition to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetProgramDefinitionResponse = z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const GetProgramDefinitionByExternalIdAndNamespaceRequest = z.object({\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20),\n options: z.object({\n externalId: z\n .string()\n .describe('Program definition external ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n});\nexport const GetProgramDefinitionByExternalIdAndNamespaceResponse = z.object({\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .describe('Retrieved program definition.')\n .optional(),\n});\nexport const QueryProgramDefinitionsRequest = z.object({\n query: z\n .object({\n filter: z\n .object({\n _id: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n namespace: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n externalId: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n _createdDate: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n $and: z.array(z.any()).optional(),\n $or: z.array(z.any()).optional(),\n $not: z.any().optional(),\n })\n .strict()\n .optional(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .enum(['_id', 'namespace', 'externalId', '_createdDate'])\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .optional(),\n })\n .catchall(z.any())\n .describe('Filter, sort, and paging to apply to the query.'),\n});\nexport const QueryProgramDefinitionsResponse = z.object({\n programDefinitions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n metadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata for the paginated results.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,iCAAmC,SAAO;AAAA,EACrD,mBACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,wBAAwB,EACjC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,mDAAmD,EAC5D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,mDAAmD,EAC5D,SAAS,EACT,SAAS;AAAA,IACZ,aACG,SAAO,EACP,SAAS,0BAA0B,EACnC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE;AAAA,IACT,gBACG,SAAO;AAAA,MACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,+BAA+B;AAC7C,CAAC;AACM,IAAM,kCAAoC,SAAO;AAAA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AAqC,EAC9C,SAAS;AACd,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateProgramDefinitionRequest = /*#__PURE__*/ z.object({\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n })\n .describe('Program definition to create.'),\n});\nexport const CreateProgramDefinitionResponse = /*#__PURE__*/ z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const UpdateProgramDefinitionRequest = /*#__PURE__*/ z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n ),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .describe('Program definition to update.'),\n});\nexport const UpdateProgramDefinitionResponse = /*#__PURE__*/ z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const DeleteProgramDefinitionRequest = /*#__PURE__*/ z.object({\n programDefinitionId: z\n .string()\n .describe('ID of the program definition to delete.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n cascadeType: z\n .enum([\n 'UNKNOWN_CASCADE',\n 'IMMEDIATELY',\n 'NEXT_RENEWAL',\n 'FUTURE_PROVISIONS',\n ])\n .optional(),\n })\n .optional(),\n});\nexport const DeleteProgramDefinitionResponse = /*#__PURE__*/ z.object({});\nexport const GetProgramDefinitionRequest = /*#__PURE__*/ z.object({\n programDefinitionId: z\n .string()\n .describe('ID of the program definition to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetProgramDefinitionResponse = /*#__PURE__*/ z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n});\nexport const GetProgramDefinitionByExternalIdAndNamespaceRequest =\n /*#__PURE__*/ z.object({\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20),\n options: z.object({\n externalId: z\n .string()\n .describe('Program definition external ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n });\nexport const GetProgramDefinitionByExternalIdAndNamespaceResponse =\n /*#__PURE__*/ z.object({\n programDefinition: z\n .object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n .describe('Retrieved program definition.')\n .optional(),\n });\nexport const QueryProgramDefinitionsRequest = /*#__PURE__*/ z.object({\n query: z\n .object({\n filter: z\n .object({\n _id: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n namespace: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n externalId: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n _createdDate: z\n .object({\n $eq: z.string(),\n $exists: z.boolean(),\n $gt: z.string(),\n $gte: z.string(),\n $hasAll: z.array(z.string()),\n $hasSome: z.array(z.string()),\n $in: z.array(z.string()),\n $lt: z.string(),\n $lte: z.string(),\n $ne: z.string(),\n $nin: z.array(z.string()),\n $startsWith: z.string(),\n })\n .partial()\n .strict()\n .optional(),\n $and: z.array(z.any()).optional(),\n $or: z.array(z.any()).optional(),\n $not: z.any().optional(),\n })\n .strict()\n .optional(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .enum(['_id', 'namespace', 'externalId', '_createdDate'])\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .optional(),\n })\n .catchall(z.any())\n .describe('Filter, sort, and paging to apply to the query.'),\n});\nexport const QueryProgramDefinitionsResponse = /*#__PURE__*/ z.object({\n programDefinitions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Program definition ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program definition is updated.\\nTo prevent conflicting changes, the current revision must be passed when updating the program definition.\\n\\nIgnored when creating a program definition.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program definition was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program definition was updated.')\n .optional()\n .nullable(),\n displayName: z\n .string()\n .describe('Program definition name.')\n .max(64)\n .optional()\n .nullable(),\n namespace: z\n .string()\n .describe(\n \"Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.\"\n )\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\n 'Custom field data for the program definition object.\\n\\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.'\n )\n .optional(),\n externalId: z\n .string()\n .describe(\n 'ID for the program definition defined by you. You can use `externalId` to filter queries.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n metadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\n 'Whether there are more pages to retrieve following the current page.\\n\\n+ `true`: Another page of results can be retrieved.\\n+ `false`: This is the last page.'\n )\n .optional()\n .nullable(),\n })\n .describe('Metadata for the paginated results.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,iCAA+C,gBAAE,SAAO;AAAA,EACnE,mBACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,wBAAwB,EACjC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,mDAAmD,EAC5D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OA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EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,UACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,2CAA2C,EACpD,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,qCAAqC,EAC9C,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_benefit-programs_program-definitions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"schemas"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
39
|
+
"@wix/sdk-types": "^1.17.11",
|
|
40
40
|
"zod": "^4.3.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"fqdn": "wix.benefit_programs.v1.program_definition"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "f9bdc0065dc52f9edd44affdfb7db2e01194831de1732eaa3f429b22"
|
|
61
61
|
}
|