@wix/auto_sdk_bookings_attendance 1.0.49 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +56 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -1
- package/build/cjs/index.typings.js +48 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +20 -2
- package/build/cjs/meta.js +41 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +55 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -1
- package/build/es/index.typings.mjs +47 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +20 -2
- package/build/es/meta.mjs +40 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -3
- package/build/internal/cjs/index.js +56 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +32 -1
- package/build/internal/cjs/index.typings.js +48 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +20 -2
- package/build/internal/cjs/meta.js +41 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +20 -3
- package/build/internal/es/index.mjs +55 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +32 -1
- package/build/internal/es/index.typings.mjs +47 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +20 -2
- package/build/internal/es/meta.mjs +40 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bookings-v2-attendance-attendance.http.ts","../../src/bookings-v2-attendance-attendance.types.ts","../../src/bookings-v2-attendance-attendance.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 { 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 resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '',\n },\n {\n srcPath: '/bookings-attendance',\n destPath: '',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/v2/attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n _: [\n {\n srcPath: '/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_attendance';\n\n/** Retrieves attendance information. */\nexport function getAttendance(payload: object): RequestOptionsFactory<any> {\n function __getAttendance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.GetAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/{attendanceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'attendance.updatedDate' },\n { path: 'attendance.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAttendance;\n}\n\n/**\n * Sets or updates attendance information for a booking session. This\n * information is stored in an `attendance` object.\n *\n * If an `attendance` object already exists for the session, it's updated.\n * Otherwise, a new object is created.\n *\n * By default, `numberOfAttendees` is set to `1`, but you can specify a higher\n * number if multiple participants attended. Do not set `numberOfAttendees` to\n * `0` to indicate no attendance, instead specify `{\"status\": \"NOT_ATTENDED\"}`.\n *\n * Validation guidelines:\n *\n * + The call succeeds for mismatches between `numberOfAttendees`\n * and `status`. For example, make sure that your code doesn't specify\n * `{\"status\": \"NOT_ATTENDED\"}` with `{\"numberOfAttendees\": 5}`.\n * + The API also allows `numberOfAttendees` to exceed the booking's\n * `numberOfParticipants`. Use higher values only when scenarios like\n * walk-ins justify the exception.\n */\nexport function setAttendance(payload: object): RequestOptionsFactory<any> {\n function __setAttendance({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'attendance.updatedDate' },\n { path: 'attendance.statusUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.SetAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/set',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'attendance.updatedDate' },\n { path: 'attendance.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setAttendance;\n}\n\n/**\n * Sets or updates attendance information for multiple booking sessions.\n *\n *\n * Refer to Set Attendance for detailed behavior of individual attendance\n * entries.\n *\n * The call fails entirely if any entry in `attendanceDetails` is missing a\n * required field.\n *\n * If attendance details are provided for a non-existent session, the call\n * succeeds for valid sessions while marking the unavailable session as a\n * failure in the response.\n */\nexport function bulkSetAttendance(payload: object): RequestOptionsFactory<any> {\n function __bulkSetAttendance({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'attendanceList.updatedDate' },\n { path: 'attendanceList.statusUpdatedDate' },\n { path: 'attendanceDetails.attendance.updatedDate' },\n { path: 'attendanceDetails.attendance.statusUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.BulkSetAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/bulk/attendance/set',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.updatedDate' },\n { path: 'results.item.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkSetAttendance;\n}\n\n/**\n * Creates a query to retrieve a list of attendances.\n *\n * The `queryAttendances()` function builds a query to retrieve a list of attendances and returns a `AttendancesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to call the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/attendance/attendances-query-builder/find) function.\n *\n * You can refine the query by chaining `AttendancesQueryBuilder` functions onto the query. `AttendancesQueryBuilder` functions enable you to sort, filter, and control the results that `queryAttendances()` returns.\n *\n * `queryAttendances()` uses the following `AttendancesQueryBuilder` default values that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryAttendances()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"numberOfAttendees\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"numberOfAttendees\"`.\n *\n * The following `AttendancesQueryBuilder` functions are supported for the `queryAttendances()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/attendance/attendances-query-result/items) property in `AttendancesQueryResult`.\n */\nexport function queryAttendance(payload: object): RequestOptionsFactory<any> {\n function __queryAttendance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.QueryAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'attendances.updatedDate' },\n { path: 'attendances.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAttendance;\n}\n\n/**\n * Counts attendance records by contact.\n *\n * Returns the total number of attendance records for the contact,\n * with optional filtering by attendance status and service IDs.\n *\n * Filtering options:\n * + **attendance_status**: Filter by attendance status (ATTENDED, NOT_ATTENDED)\n * + **service_id**: Filter by one or more service IDs from the bookings\n *\n * If no filters are provided, returns the total count of all attendance records\n * for the contact.\n */\nexport function countAttendances(payload: object): RequestOptionsFactory<any> {\n function __countAttendances({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.CountAttendances',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countAttendances;\n}\n","/**\n * The `attendance` object represents the attendance information\n * for a booked session, such as:\n *\n * + Did anyone attend the session?\n * + How many people attended the session?\n *\n * The number of session `attendance` objects available depends on the booking type:\n * + Appointment bookings have 1 `attendance` object per appointment session.\n * + Class bookings have 1 `attendance` object for each session of the class. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.\n * + Course bookings have an `attendance` object for each session of the course. For example, if there are 12 sessions in a course, there are 12 `attendance` objects. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.\n */\nexport interface Attendance {\n /**\n * ID of the `attendance` object.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Corresponding booking ID.\n * @format GUID\n */\n bookingId?: string | null;\n /** Corresponding session ID. */\n sessionId?: string | null;\n /** Status indicating if any participants attended the session. */\n status?: AttendanceStatusWithLiterals;\n /**\n * Total number of participants that attended the session. By default, the number\n * of attendees is set to `1`, but you can set a number to greater than `1` if multiple\n * participants attended.\n *\n * Do not set to `0` to indicate that no one attended the session. Instead, set the `status` field to `NOT_ATTENDED`.\n *\n * Default: 1\n */\n numberOfAttendees?: number;\n}\n\nexport enum AttendanceStatus {\n /** There is no available attendance information. */\n NOT_SET = 'NOT_SET',\n /** At least a single participant attended the session. */\n ATTENDED = 'ATTENDED',\n /** No participants attended the session. */\n NOT_ATTENDED = 'NOT_ATTENDED',\n}\n\n/** @enumType */\nexport type AttendanceStatusWithLiterals =\n | AttendanceStatus\n | 'NOT_SET'\n | 'ATTENDED'\n | 'NOT_ATTENDED';\n\nexport interface GetAttendanceRequest {\n /**\n * ID of the attendance object to retrieve.\n * @format GUID\n */\n attendanceId: string;\n}\n\nexport interface GetAttendanceResponse {\n /** Retrieved attendance. */\n attendance?: Attendance;\n}\n\nexport interface SetAttendanceRequest {\n /** Attendance to create or update. */\n attendance: Attendance;\n /** Information about whether to send a message to a customer after their attendance was set. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface ParticipantNotification {\n /**\n * Specify whether to send a message about the changes to the customer.\n *\n * Default: `false`\n */\n notifyParticipants?: boolean | null;\n /**\n * Optional custom message to send to the participants about the changes to the booking.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string | null;\n}\n\nexport interface SetAttendanceResponse {\n /** Created or updated attendance. */\n attendance?: Attendance;\n}\n\nexport interface AttendanceMarkedAsNotAttended {\n /** The attendance information for a booked session that you want to create or update. */\n attendance?: Attendance;\n /** Information about whether to send a message to a customer after their attendance was set. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface BulkSetAttendanceRequest {\n returnFullEntity?: boolean;\n /**\n * List of attendance details for booking sessions to create or update.\n * @maxSize 8\n */\n attendanceDetails?: AttendanceDetails[];\n}\n\nexport interface AttendanceDetails {\n /** Created or updated attendance information for a booking session. */\n attendance?: Attendance;\n /** Information about whether to send a message to the customer after their attendance was set. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface BulkSetAttendanceResponse {\n /**\n * List of created or updated `attendance` objects.\n * @minSize 1\n * @maxSize 8\n */\n results?: BulkAttendanceResult[];\n /** Information about the total number of successes and failures for the Bulk Set Attendance call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkAttendanceResult {\n /** Created or updated `attendance` object. */\n item?: Attendance;\n /** Metadata for the created or updated `attendance` object. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface QueryAttendanceRequest {\n /** Query options. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /**\n * Cursor token pointing to a page of results. In the first request,\n * specify `cursorPaging.limit`. For following requests, specify the\n * retrieved `cursorPaging.cursor` token and not `query.filter` or\n * `query.sort`.\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n *\n * Max: 1 filter\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[ {\"fieldName\":\"sortField1\",\"order\":\"ASC\"}, {\"fieldName\":\"sortField2\",\"order\":\"DESC\"} ]`\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /**\n * Cursor token pointing to a page of results. In the first request,\n * specify `cursorPaging.limit`. For following requests, specify the\n * retrieved `cursorPaging.cursor` token and not `query.filter` or\n * `query.sort`.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /** Name of the field to sort by. */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\n/**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`.\n */\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of `Attendance` objects to return.\n *\n * Default: `50`\n * Maximum: `1000`\n * @max 1000\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n *\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\n/** List of objects that contain attendance information. */\nexport interface QueryAttendanceResponse {\n /** List of `attendance` objects that contain attendance information for a booked session. */\n attendances?: Attendance[];\n /** Metadata for the paged set of results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\n/** This is the preferred message for cursor-paging enabled services */\nexport interface CursorPagingMetadata {\n /** Use these cursors to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface CountAttendancesRequest {\n /** Filter criteria for counting attendance records. If not provided, counts all attendance records for the contact. */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountAttendancesResponse {\n /** Total number of attendance records matching the filters. */\n count?: number;\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\n/** @docsIgnore */\nexport type GetAttendanceApplicationErrors = {\n code?: 'ATTENDANCE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type SetAttendanceApplicationErrors = {\n code?: 'SESSION_ID_NOT_PROVIDED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkSetAttendanceApplicationErrors = {\n code?: 'ATTENDANCES_MISSING_IN_REQUEST';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixBookingsV2Attendance from './bookings-v2-attendance-attendance.http.js';\nimport * as ambassadorWixBookingsV2AttendanceTypes from './bookings-v2-attendance-attendance.types.js';\nimport * as ambassadorWixBookingsV2AttendanceUniversalTypes from './bookings-v2-attendance-attendance.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 getAttendance(): __PublicMethodMetaInfo<\n 'GET',\n { attendanceId: string },\n ambassadorWixBookingsV2AttendanceUniversalTypes.GetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.GetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.GetAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.GetAttendanceResponse\n> {\n const payload = { attendanceId: ':attendanceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.getAttendance(payload);\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: '/v2/attendance/{attendanceId}',\n pathParams: { attendanceId: 'attendanceId' },\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 setAttendance(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.SetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.SetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.SetAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.SetAttendanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.setAttendance(payload);\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: '/v2/attendance/set',\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 bulkSetAttendance(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.BulkSetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.BulkSetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.BulkSetAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.BulkSetAttendanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.bulkSetAttendance(payload);\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: '/v2/bulk/attendance/set',\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 queryAttendance(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.QueryAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.QueryAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.QueryAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.QueryAttendanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.queryAttendance(payload);\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: '/v2/attendance/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 function countAttendances(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.CountAttendancesRequest,\n ambassadorWixBookingsV2AttendanceTypes.CountAttendancesRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.CountAttendancesResponse,\n ambassadorWixBookingsV2AttendanceTypes.CountAttendancesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.countAttendances(payload);\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: '/v2/attendance/count',\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 Attendance as AttendanceOriginal,\n AttendanceStatus as AttendanceStatusOriginal,\n AttendanceStatusWithLiterals as AttendanceStatusWithLiteralsOriginal,\n GetAttendanceRequest as GetAttendanceRequestOriginal,\n GetAttendanceResponse as GetAttendanceResponseOriginal,\n SetAttendanceRequest as SetAttendanceRequestOriginal,\n ParticipantNotification as ParticipantNotificationOriginal,\n SetAttendanceResponse as SetAttendanceResponseOriginal,\n AttendanceMarkedAsNotAttended as AttendanceMarkedAsNotAttendedOriginal,\n BulkSetAttendanceRequest as BulkSetAttendanceRequestOriginal,\n AttendanceDetails as AttendanceDetailsOriginal,\n BulkSetAttendanceResponse as BulkSetAttendanceResponseOriginal,\n BulkAttendanceResult as BulkAttendanceResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n QueryAttendanceRequest as QueryAttendanceRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryAttendanceResponse as QueryAttendanceResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CountAttendancesRequest as CountAttendancesRequestOriginal,\n CountAttendancesResponse as CountAttendancesResponseOriginal,\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 GetAttendanceApplicationErrors as GetAttendanceApplicationErrorsOriginal,\n SetAttendanceApplicationErrors as SetAttendanceApplicationErrorsOriginal,\n BulkSetAttendanceApplicationErrors as BulkSetAttendanceApplicationErrorsOriginal,\n} from './bookings-v2-attendance-attendance.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,2DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,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M;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC8B,kBAAkB,OAAO;AAE7D,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,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC8B,gBAAgB,OAAO;AAE3D,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,oBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC8B,iBAAiB,OAAO;AAE5D,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","AttendanceStatus","SortOrder","WebhookIdentityType","getAttendance","setAttendance","bulkSetAttendance","queryAttendance","countAttendances"]}
|
|
1
|
+
{"version":3,"sources":["../../src/bookings-v2-attendance-attendance.http.ts","../../src/bookings-v2-attendance-attendance.types.ts","../../src/bookings-v2-attendance-attendance.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 { 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 resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '',\n },\n {\n srcPath: '/bookings-attendance',\n destPath: '',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/v2/attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/bookings/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n _: [\n {\n srcPath: '/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/_api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n {\n srcPath: '/bookings/attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/bookings-attendance',\n destPath: '/v2/attendance',\n },\n {\n srcPath: '/api/bookings-attendance/v2/bulk/attendance',\n destPath: '/v2/bulk/attendance',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_attendance';\n\n/** Retrieves attendance information. */\nexport function getAttendance(payload: object): RequestOptionsFactory<any> {\n function __getAttendance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.GetAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/{attendanceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'attendance.updatedDate' },\n { path: 'attendance.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getAttendance;\n}\n\n/**\n * Sets or updates attendance information for a booking session. This\n * information is stored in an `attendance` object.\n *\n * If an `attendance` object already exists for the session, it's updated.\n * Otherwise, a new object is created.\n *\n * By default, `numberOfAttendees` is set to `1`, but you can specify a higher\n * number if multiple participants attended. Do not set `numberOfAttendees` to\n * `0` to indicate no attendance, instead specify `{\"status\": \"NOT_ATTENDED\"}`.\n *\n * Validation guidelines:\n *\n * + The call succeeds for mismatches between `numberOfAttendees`\n * and `status`. For example, make sure that your code doesn't specify\n * `{\"status\": \"NOT_ATTENDED\"}` with `{\"numberOfAttendees\": 5}`.\n * + The API also allows `numberOfAttendees` to exceed the booking's\n * `numberOfParticipants`. Use higher values only when scenarios like\n * walk-ins justify the exception.\n */\nexport function setAttendance(payload: object): RequestOptionsFactory<any> {\n function __setAttendance({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'attendance.updatedDate' },\n { path: 'attendance.statusUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.SetAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/set',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'attendance.updatedDate' },\n { path: 'attendance.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setAttendance;\n}\n\n/**\n * Sets or updates attendance information for multiple booking sessions.\n *\n *\n * Refer to Set Attendance for detailed behavior of individual attendance\n * entries.\n *\n * The call fails entirely if any entry in `attendanceDetails` is missing a\n * required field.\n *\n * If attendance details are provided for a non-existent session, the call\n * succeeds for valid sessions while marking the unavailable session as a\n * failure in the response.\n */\nexport function bulkSetAttendance(payload: object): RequestOptionsFactory<any> {\n function __bulkSetAttendance({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'attendanceList.updatedDate' },\n { path: 'attendanceList.statusUpdatedDate' },\n { path: 'attendanceDetails.attendance.updatedDate' },\n { path: 'attendanceDetails.attendance.statusUpdatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.BulkSetAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/bulk/attendance/set',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.updatedDate' },\n { path: 'results.item.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkSetAttendance;\n}\n\n/**\n * Creates a query to retrieve a list of attendances.\n *\n * The `queryAttendances()` function builds a query to retrieve a list of attendances and returns a `AttendancesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to call the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/attendance/attendances-query-builder/find) function.\n *\n * You can refine the query by chaining `AttendancesQueryBuilder` functions onto the query. `AttendancesQueryBuilder` functions enable you to sort, filter, and control the results that `queryAttendances()` returns.\n *\n * `queryAttendances()` uses the following `AttendancesQueryBuilder` default values that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryAttendances()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"numberOfAttendees\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"numberOfAttendees\"`.\n *\n * The following `AttendancesQueryBuilder` functions are supported for the `queryAttendances()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/attendance/attendances-query-result/items) property in `AttendancesQueryResult`.\n */\nexport function queryAttendance(payload: object): RequestOptionsFactory<any> {\n function __queryAttendance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.QueryAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'attendances.updatedDate' },\n { path: 'attendances.statusUpdatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryAttendance;\n}\n\n/**\n * Counts attendance records by contact.\n *\n * Returns the total number of attendance records for the contact,\n * with optional filtering by attendance status and service IDs.\n *\n * Filtering options:\n * + **attendance_status**: Filter by attendance status (ATTENDED, NOT_ATTENDED)\n * + **service_id**: Filter by one or more service IDs from the bookings\n *\n * If no filters are provided, returns the total count of all attendance records\n * for the contact.\n */\nexport function countAttendances(payload: object): RequestOptionsFactory<any> {\n function __countAttendances({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.CountAttendances',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countAttendances;\n}\n\n/**\n * Deletes an attendance record.\n *\n *\n * This permanently removes the attendance information for a booking session.\n * To recreate the attendance information, call [Set Attendance](#set-attendance).\n */\nexport function deleteAttendance(payload: object): RequestOptionsFactory<any> {\n function __deleteAttendance({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.v2.attendance',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.bookings.attendance.v2.AttendanceService.DeleteAttendance',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({\n protoPath: '/v2/attendance/{attendanceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteAttendance;\n}\n","/**\n * The `attendance` object represents the attendance information\n * for a booked session, such as:\n *\n * + Did anyone attend the session?\n * + How many people attended the session?\n *\n * The number of session `attendance` objects available depends on the booking type:\n * + Appointment bookings have 1 `attendance` object per appointment session.\n * + Class bookings have 1 `attendance` object for each session of the class. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.\n * + Course bookings have an `attendance` object for each session of the course. For example, if there are 12 sessions in a course, there are 12 `attendance` objects. The number of sessions for a class is defined in Schedule and Sessions `schedule.capacity` property.\n */\nexport interface Attendance {\n /**\n * ID of the `attendance` object.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Corresponding booking ID.\n * @format GUID\n */\n bookingId?: string | null;\n /** Corresponding session ID. */\n sessionId?: string | null;\n /** Status indicating if any participants attended the session. */\n status?: AttendanceStatusWithLiterals;\n /**\n * Total number of participants that attended the session. By default, the number\n * of attendees is set to `1`, but you can set a number to greater than `1` if multiple\n * participants attended.\n *\n * Do not set to `0` to indicate that no one attended the session. Instead, set the `status` field to `NOT_ATTENDED`.\n *\n * Default: 1\n */\n numberOfAttendees?: number;\n}\n\nexport enum AttendanceStatus {\n /** There is no available attendance information. */\n NOT_SET = 'NOT_SET',\n /** At least a single participant attended the session. */\n ATTENDED = 'ATTENDED',\n /** No participants attended the session. */\n NOT_ATTENDED = 'NOT_ATTENDED',\n}\n\n/** @enumType */\nexport type AttendanceStatusWithLiterals =\n | AttendanceStatus\n | 'NOT_SET'\n | 'ATTENDED'\n | 'NOT_ATTENDED';\n\nexport interface GetAttendanceRequest {\n /**\n * ID of the attendance object to retrieve.\n * @format GUID\n */\n attendanceId: string;\n}\n\nexport interface GetAttendanceResponse {\n /** Retrieved attendance. */\n attendance?: Attendance;\n}\n\nexport interface SetAttendanceRequest {\n /** Attendance to create or update. */\n attendance: Attendance;\n /** Information about whether to send a message to a customer after their attendance was set. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface ParticipantNotification {\n /**\n * Specify whether to send a message about the changes to the customer.\n *\n * Default: `false`\n */\n notifyParticipants?: boolean | null;\n /**\n * Optional custom message to send to the participants about the changes to the booking.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string | null;\n}\n\nexport interface SetAttendanceResponse {\n /** Created or updated attendance. */\n attendance?: Attendance;\n}\n\nexport interface AttendanceMarkedAsNotAttended {\n /** The attendance information for a booked session that you want to create or update. */\n attendance?: Attendance;\n /** Information about whether to send a message to a customer after their attendance was set. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface BulkSetAttendanceRequest {\n returnFullEntity?: boolean;\n /**\n * List of attendance details for booking sessions to create or update.\n * @maxSize 8\n */\n attendanceDetails?: AttendanceDetails[];\n}\n\nexport interface AttendanceDetails {\n /** Created or updated attendance information for a booking session. */\n attendance?: Attendance;\n /** Information about whether to send a message to the customer after their attendance was set. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface BulkSetAttendanceResponse {\n /**\n * List of created or updated `attendance` objects.\n * @minSize 1\n * @maxSize 8\n */\n results?: BulkAttendanceResult[];\n /** Information about the total number of successes and failures for the Bulk Set Attendance call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkAttendanceResult {\n /** Created or updated `attendance` object. */\n item?: Attendance;\n /** Metadata for the created or updated `attendance` object. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface QueryAttendanceRequest {\n /** Query options. */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /**\n * Cursor token pointing to a page of results. In the first request,\n * specify `cursorPaging.limit`. For following requests, specify the\n * retrieved `cursorPaging.cursor` token and not `query.filter` or\n * `query.sort`.\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n *\n * Max: 1 filter\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[ {\"fieldName\":\"sortField1\",\"order\":\"ASC\"}, {\"fieldName\":\"sortField2\",\"order\":\"DESC\"} ]`\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /**\n * Cursor token pointing to a page of results. In the first request,\n * specify `cursorPaging.limit`. For following requests, specify the\n * retrieved `cursorPaging.cursor` token and not `query.filter` or\n * `query.sort`.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /** Name of the field to sort by. */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\n/**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`.\n */\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of `Attendance` objects to return.\n *\n * Default: `50`\n * Maximum: `1000`\n * @max 1000\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n *\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\n/** List of objects that contain attendance information. */\nexport interface QueryAttendanceResponse {\n /** List of `attendance` objects that contain attendance information for a booked session. */\n attendances?: Attendance[];\n /** Metadata for the paged set of results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\n/** This is the preferred message for cursor-paging enabled services */\nexport interface CursorPagingMetadata {\n /** Use these cursors to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface CountAttendancesRequest {\n /** Filter criteria for counting attendance records. If not provided, counts all attendance records for the contact. */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountAttendancesResponse {\n /** Total number of attendance records matching the filters. */\n count?: number;\n}\n\nexport interface DeleteAttendanceRequest {\n /**\n * Attendance ID.\n * @format GUID\n */\n attendanceId: string;\n}\n\nexport interface DeleteAttendanceResponse {}\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\n/** @docsIgnore */\nexport type GetAttendanceApplicationErrors = {\n code?: 'ATTENDANCE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type SetAttendanceApplicationErrors = {\n code?: 'SESSION_ID_NOT_PROVIDED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkSetAttendanceApplicationErrors = {\n code?: 'ATTENDANCES_MISSING_IN_REQUEST';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type DeleteAttendanceApplicationErrors = {\n code?: 'ATTENDANCE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixBookingsV2Attendance from './bookings-v2-attendance-attendance.http.js';\nimport * as ambassadorWixBookingsV2AttendanceTypes from './bookings-v2-attendance-attendance.types.js';\nimport * as ambassadorWixBookingsV2AttendanceUniversalTypes from './bookings-v2-attendance-attendance.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 getAttendance(): __PublicMethodMetaInfo<\n 'GET',\n { attendanceId: string },\n ambassadorWixBookingsV2AttendanceUniversalTypes.GetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.GetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.GetAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.GetAttendanceResponse\n> {\n const payload = { attendanceId: ':attendanceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.getAttendance(payload);\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: '/v2/attendance/{attendanceId}',\n pathParams: { attendanceId: 'attendanceId' },\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 setAttendance(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.SetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.SetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.SetAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.SetAttendanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.setAttendance(payload);\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: '/v2/attendance/set',\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 bulkSetAttendance(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.BulkSetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.BulkSetAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.BulkSetAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.BulkSetAttendanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.bulkSetAttendance(payload);\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: '/v2/bulk/attendance/set',\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 queryAttendance(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.QueryAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.QueryAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.QueryAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.QueryAttendanceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.queryAttendance(payload);\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: '/v2/attendance/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 function countAttendances(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsV2AttendanceUniversalTypes.CountAttendancesRequest,\n ambassadorWixBookingsV2AttendanceTypes.CountAttendancesRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.CountAttendancesResponse,\n ambassadorWixBookingsV2AttendanceTypes.CountAttendancesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.countAttendances(payload);\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: '/v2/attendance/count',\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 deleteAttendance(): __PublicMethodMetaInfo<\n 'DELETE',\n { attendanceId: string },\n ambassadorWixBookingsV2AttendanceUniversalTypes.DeleteAttendanceRequest,\n ambassadorWixBookingsV2AttendanceTypes.DeleteAttendanceRequest,\n ambassadorWixBookingsV2AttendanceUniversalTypes.DeleteAttendanceResponse,\n ambassadorWixBookingsV2AttendanceTypes.DeleteAttendanceResponse\n> {\n const payload = { attendanceId: ':attendanceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsV2Attendance.deleteAttendance(payload);\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: '/v2/attendance/{attendanceId}',\n pathParams: { attendanceId: 'attendanceId' },\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 Attendance as AttendanceOriginal,\n AttendanceStatus as AttendanceStatusOriginal,\n AttendanceStatusWithLiterals as AttendanceStatusWithLiteralsOriginal,\n GetAttendanceRequest as GetAttendanceRequestOriginal,\n GetAttendanceResponse as GetAttendanceResponseOriginal,\n SetAttendanceRequest as SetAttendanceRequestOriginal,\n ParticipantNotification as ParticipantNotificationOriginal,\n SetAttendanceResponse as SetAttendanceResponseOriginal,\n AttendanceMarkedAsNotAttended as AttendanceMarkedAsNotAttendedOriginal,\n BulkSetAttendanceRequest as BulkSetAttendanceRequestOriginal,\n AttendanceDetails as AttendanceDetailsOriginal,\n BulkSetAttendanceResponse as BulkSetAttendanceResponseOriginal,\n BulkAttendanceResult as BulkAttendanceResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n QueryAttendanceRequest as QueryAttendanceRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryAttendanceResponse as QueryAttendanceResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n CountAttendancesRequest as CountAttendancesRequestOriginal,\n CountAttendancesResponse as CountAttendancesResponseOriginal,\n DeleteAttendanceRequest as DeleteAttendanceRequestOriginal,\n DeleteAttendanceResponse as DeleteAttendanceResponseOriginal,\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 GetAttendanceApplicationErrors as GetAttendanceApplicationErrorsOriginal,\n SetAttendanceApplicationErrors as SetAttendanceApplicationErrorsOriginal,\n BulkSetAttendanceApplicationErrors as BulkSetAttendanceApplicationErrorsOriginal,\n DeleteAttendanceApplicationErrors as DeleteAttendanceApplicationErrorsOriginal,\n} from './bookings-v2-attendance-attendance.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,2DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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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,oBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC8B,iBAAiB,OAAO;AAE5D,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,oBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBAC8B,iBAAiB,OAAO;AAE5D,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,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","AttendanceStatus","SortOrder","WebhookIdentityType","getAttendance","setAttendance","bulkSetAttendance","queryAttendance","countAttendances","deleteAttendance"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Attendance, GetAttendanceApplicationErrors, SetAttendanceOptions, SetAttendanceResponse, SetAttendanceApplicationErrors, BulkSetAttendanceOptions, BulkSetAttendanceResponse, BulkSetAttendanceApplicationErrors, CountAttendancesOptions, CountAttendancesResponse, AttendancesQueryBuilder, AttendanceQuery, typedQueryAttendance } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, ApplicationError, AttendanceDetails, AttendanceMarkedAsNotAttended, AttendanceQuerySpec, AttendanceStatus, AttendanceStatusWithLiterals, AttendancesQueryResult, BulkActionMetadata, BulkAttendanceResult, BulkSetAttendanceRequest, CommonQueryWithEntityContext, CountAttendancesRequest, CursorPaging, CursorPagingMetadata, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetAttendanceRequest, GetAttendanceResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, Paging, ParticipantNotification, QueryAttendanceRequest, QueryAttendanceResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SetAttendanceRequest, SortOrder, SortOrderWithLiterals, Sorting, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
2
|
+
import { Attendance, GetAttendanceApplicationErrors, SetAttendanceOptions, SetAttendanceResponse, SetAttendanceApplicationErrors, BulkSetAttendanceOptions, BulkSetAttendanceResponse, BulkSetAttendanceApplicationErrors, CountAttendancesOptions, CountAttendancesResponse, DeleteAttendanceApplicationErrors, AttendancesQueryBuilder, AttendanceQuery, typedQueryAttendance } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, ApplicationError, AttendanceDetails, AttendanceMarkedAsNotAttended, AttendanceQuerySpec, AttendanceStatus, AttendanceStatusWithLiterals, AttendancesQueryResult, BulkActionMetadata, BulkAttendanceResult, BulkSetAttendanceRequest, CommonQueryWithEntityContext, CountAttendancesRequest, CursorPaging, CursorPagingMetadata, Cursors, DeleteAttendanceRequest, DeleteAttendanceResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetAttendanceRequest, GetAttendanceResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, Paging, ParticipantNotification, QueryAttendanceRequest, QueryAttendanceResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SetAttendanceRequest, SortOrder, SortOrderWithLiterals, Sorting, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getAttendance$1(httpClient: HttpClient): GetAttendanceSignature;
|
|
6
6
|
interface GetAttendanceSignature {
|
|
@@ -79,6 +79,21 @@ interface CountAttendancesSignature {
|
|
|
79
79
|
*/
|
|
80
80
|
(options?: CountAttendancesOptions): Promise<NonNullablePaths<CountAttendancesResponse, `count`, 2>>;
|
|
81
81
|
}
|
|
82
|
+
/** @internal */
|
|
83
|
+
declare function deleteAttendance$1(httpClient: HttpClient): DeleteAttendanceSignature;
|
|
84
|
+
interface DeleteAttendanceSignature {
|
|
85
|
+
/**
|
|
86
|
+
* Deletes an attendance record.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* This permanently removes the attendance information for a booking session.
|
|
90
|
+
* To recreate the attendance information, call [Set Attendance](#set-attendance).
|
|
91
|
+
* @param - Attendance ID.
|
|
92
|
+
*/
|
|
93
|
+
(attendanceId: string): Promise<void & {
|
|
94
|
+
__applicationErrorsType?: DeleteAttendanceApplicationErrors;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
82
97
|
|
|
83
98
|
declare function customQueryAttendance(httpClient: HttpClient): {
|
|
84
99
|
(): AttendancesQueryBuilder;
|
|
@@ -88,6 +103,8 @@ declare const getAttendance: MaybeContext<BuildRESTFunction<typeof getAttendance
|
|
|
88
103
|
declare const setAttendance: MaybeContext<BuildRESTFunction<typeof setAttendance$1> & typeof setAttendance$1>;
|
|
89
104
|
declare const bulkSetAttendance: MaybeContext<BuildRESTFunction<typeof bulkSetAttendance$1> & typeof bulkSetAttendance$1>;
|
|
90
105
|
declare const countAttendances: MaybeContext<BuildRESTFunction<typeof countAttendances$1> & typeof countAttendances$1>;
|
|
106
|
+
/** @internal */
|
|
107
|
+
declare const deleteAttendance: MaybeContext<BuildRESTFunction<typeof deleteAttendance$1> & typeof deleteAttendance$1>;
|
|
91
108
|
declare const queryAttendance: MaybeContext<BuildRESTFunction<typeof customQueryAttendance> & typeof customQueryAttendance>;
|
|
92
109
|
|
|
93
|
-
export { Attendance, AttendanceQuery, AttendancesQueryBuilder, BulkSetAttendanceApplicationErrors, BulkSetAttendanceOptions, BulkSetAttendanceResponse, CountAttendancesOptions, CountAttendancesResponse, GetAttendanceApplicationErrors, SetAttendanceApplicationErrors, SetAttendanceOptions, SetAttendanceResponse, bulkSetAttendance, countAttendances, getAttendance, queryAttendance, setAttendance };
|
|
110
|
+
export { Attendance, AttendanceQuery, AttendancesQueryBuilder, BulkSetAttendanceApplicationErrors, BulkSetAttendanceOptions, BulkSetAttendanceResponse, CountAttendancesOptions, CountAttendancesResponse, DeleteAttendanceApplicationErrors, GetAttendanceApplicationErrors, SetAttendanceApplicationErrors, SetAttendanceOptions, SetAttendanceResponse, bulkSetAttendance, countAttendances, deleteAttendance, getAttendance, queryAttendance, setAttendance };
|
|
@@ -25,6 +25,7 @@ __export(index_exports, {
|
|
|
25
25
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
26
26
|
bulkSetAttendance: () => bulkSetAttendance4,
|
|
27
27
|
countAttendances: () => countAttendances4,
|
|
28
|
+
deleteAttendance: () => deleteAttendance4,
|
|
28
29
|
getAttendance: () => getAttendance4,
|
|
29
30
|
queryAttendance: () => queryAttendance4,
|
|
30
31
|
setAttendance: () => setAttendance4
|
|
@@ -309,6 +310,27 @@ function countAttendances(payload) {
|
|
|
309
310
|
}
|
|
310
311
|
return __countAttendances;
|
|
311
312
|
}
|
|
313
|
+
function deleteAttendance(payload) {
|
|
314
|
+
function __deleteAttendance({ host }) {
|
|
315
|
+
const metadata = {
|
|
316
|
+
entityFqdn: "wix.bookings.v2.attendance",
|
|
317
|
+
method: "DELETE",
|
|
318
|
+
methodFqn: "com.wixpress.bookings.attendance.v2.AttendanceService.DeleteAttendance",
|
|
319
|
+
packageName: PACKAGE_NAME,
|
|
320
|
+
migrationOptions: {
|
|
321
|
+
optInTransformResponse: true
|
|
322
|
+
},
|
|
323
|
+
url: resolveComWixpressBookingsAttendanceV2AttendanceServiceUrl({
|
|
324
|
+
protoPath: "/v2/attendance/{attendanceId}",
|
|
325
|
+
data: payload,
|
|
326
|
+
host
|
|
327
|
+
}),
|
|
328
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
329
|
+
};
|
|
330
|
+
return metadata;
|
|
331
|
+
}
|
|
332
|
+
return __deleteAttendance;
|
|
333
|
+
}
|
|
312
334
|
|
|
313
335
|
// src/bookings-v2-attendance-attendance.universal.ts
|
|
314
336
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -505,6 +527,31 @@ async function countAttendances2(options) {
|
|
|
505
527
|
throw transformedError;
|
|
506
528
|
}
|
|
507
529
|
}
|
|
530
|
+
async function deleteAttendance2(attendanceId) {
|
|
531
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
532
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
533
|
+
attendanceId
|
|
534
|
+
});
|
|
535
|
+
const reqOpts = deleteAttendance(payload);
|
|
536
|
+
sideEffects?.onSiteCall?.();
|
|
537
|
+
try {
|
|
538
|
+
const result = await httpClient.request(reqOpts);
|
|
539
|
+
sideEffects?.onSuccess?.(result);
|
|
540
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
541
|
+
} catch (err) {
|
|
542
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
543
|
+
err,
|
|
544
|
+
{
|
|
545
|
+
spreadPathsToArguments: {},
|
|
546
|
+
explicitPathsToArguments: { attendanceId: "$[0]" },
|
|
547
|
+
singleArgumentUnchanged: false
|
|
548
|
+
},
|
|
549
|
+
["attendanceId"]
|
|
550
|
+
);
|
|
551
|
+
sideEffects?.onError?.(err);
|
|
552
|
+
throw transformedError;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
508
555
|
|
|
509
556
|
// src/bookings-v2-attendance-attendance.public.ts
|
|
510
557
|
function getAttendance3(httpClient) {
|
|
@@ -549,6 +596,13 @@ function countAttendances3(httpClient) {
|
|
|
549
596
|
{ httpClient }
|
|
550
597
|
);
|
|
551
598
|
}
|
|
599
|
+
function deleteAttendance3(httpClient) {
|
|
600
|
+
return (attendanceId) => deleteAttendance2(
|
|
601
|
+
attendanceId,
|
|
602
|
+
// @ts-ignore
|
|
603
|
+
{ httpClient }
|
|
604
|
+
);
|
|
605
|
+
}
|
|
552
606
|
|
|
553
607
|
// src/bookings-v2-attendance-attendance.context.ts
|
|
554
608
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -568,6 +622,7 @@ var getAttendance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
568
622
|
var setAttendance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setAttendance3);
|
|
569
623
|
var bulkSetAttendance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkSetAttendance3);
|
|
570
624
|
var countAttendances4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countAttendances3);
|
|
625
|
+
var deleteAttendance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAttendance3);
|
|
571
626
|
var queryAttendance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryAttendance);
|
|
572
627
|
// Annotate the CommonJS export names for ESM import in node:
|
|
573
628
|
0 && (module.exports = {
|
|
@@ -576,6 +631,7 @@ var queryAttendance4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule
|
|
|
576
631
|
WebhookIdentityType,
|
|
577
632
|
bulkSetAttendance,
|
|
578
633
|
countAttendances,
|
|
634
|
+
deleteAttendance,
|
|
579
635
|
getAttendance,
|
|
580
636
|
queryAttendance,
|
|
581
637
|
setAttendance
|