@wix/auto_sdk_staff-time-clock_timecards 1.0.0 → 1.0.1
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.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -6
- package/build/internal/cjs/meta.d.ts +8 -6
- package/build/internal/es/index.typings.d.mts +8 -6
- package/build/internal/es/meta.d.mts +8 -6
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -230,19 +230,21 @@ interface GetTimeClockDetailsResponse {
|
|
|
230
230
|
tasks?: Task[];
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* A
|
|
234
|
-
*
|
|
233
|
+
* A kind of work a staff member can start during a timecard, such as "Front
|
|
234
|
+
* desk" or "Lunch". Time spent on an unpaid task isn't counted as paid working
|
|
235
|
+
* time.
|
|
235
236
|
*/
|
|
236
237
|
interface Task {
|
|
237
238
|
/**
|
|
238
|
-
* Task
|
|
239
|
-
*
|
|
240
|
-
*
|
|
239
|
+
* Task ID. Leave empty when adding a task, and one is assigned. Pass the
|
|
240
|
+
* existing ID when updating a task. Tasks are identified by ID, so 2 tasks
|
|
241
|
+
* can have the same label.
|
|
241
242
|
* @format GUID
|
|
242
243
|
*/
|
|
243
244
|
id?: string | null;
|
|
244
245
|
/**
|
|
245
|
-
*
|
|
246
|
+
* Task name shown to staff members and managers, such as "Lunch" or
|
|
247
|
+
* "Training".
|
|
246
248
|
* @maxLength 100
|
|
247
249
|
*/
|
|
248
250
|
label?: string;
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/staff-time-clock-v1-timecard-timecards.http.ts","../../src/staff-time-clock-v1-timecard-timecards.types.ts","../../src/staff-time-clock-v1-timecard-timecards.meta.ts"],"sourcesContent":["export * from './src/staff-time-clock-v1-timecard-timecards.meta.js';\n","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\nconst TRANSFORM_PATHS_0 = [{ path: 'expirationDate' }];\nconst TRANSFORM_PATHS_1 = [\n { path: 'openTimecard.createdDate' },\n { path: 'openTimecard.updatedDate' },\n { path: 'openTimecard.clockIn.date.utcDate' },\n { path: 'openTimecard.clockIn.adjustedDate.utcDate' },\n { path: 'openTimecard.clockOut.date.utcDate' },\n { path: 'openTimecard.clockOut.adjustedDate.utcDate' },\n { path: 'openTimecard.taskAssignments.startDate.utcDate' },\n { path: 'openTimecard.taskAssignments.endDate.utcDate' },\n { path: 'openTimecard.taskAssignments.adjustedStartDate.utcDate' },\n { path: 'openTimecard.taskAssignments.adjustedEndDate.utcDate' },\n];\nconst TRANSFORM_PATHS_2 = [\n { path: 'timecard.createdDate' },\n { path: 'timecard.updatedDate' },\n { path: 'timecard.clockIn.date.utcDate' },\n { path: 'timecard.clockIn.adjustedDate.utcDate' },\n { path: 'timecard.clockOut.date.utcDate' },\n { path: 'timecard.clockOut.adjustedDate.utcDate' },\n { path: 'timecard.taskAssignments.startDate.utcDate' },\n { path: 'timecard.taskAssignments.endDate.utcDate' },\n { path: 'timecard.taskAssignments.adjustedStartDate.utcDate' },\n { path: 'timecard.taskAssignments.adjustedEndDate.utcDate' },\n];\nconst TRANSFORM_PATHS_3 = [{ path: 'fieldMask' }];\nconst TRANSFORM_PATHS_4 = [\n { path: 'timecards.createdDate' },\n { path: 'timecards.updatedDate' },\n { path: 'timecards.clockIn.date.utcDate' },\n { path: 'timecards.clockIn.adjustedDate.utcDate' },\n { path: 'timecards.clockOut.date.utcDate' },\n { path: 'timecards.clockOut.adjustedDate.utcDate' },\n { path: 'timecards.taskAssignments.startDate.utcDate' },\n { path: 'timecards.taskAssignments.endDate.utcDate' },\n { path: 'timecards.taskAssignments.adjustedStartDate.utcDate' },\n { path: 'timecards.taskAssignments.adjustedEndDate.utcDate' },\n];\n\nfunction resolveWixStaffTimeClockV1TimecardsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/timecard',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixStaffKioskV1KioskSessionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/v1/timecards',\n destPath: '/v1/timecards',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_staff-time-clock_timecards';\n\n/**\n * Exchanges a staff member's PIN hash for a short-lived StaffToken.\n *\n * Call this with the device's Kiosk Token as a bearer credential. The site and\n * location are taken from that token.\n *\n * A PIN that matches no staff member and a staff member who has no PIN return the\n * same error, with no detail distinguishing them.\n */\nexport function generateStaffToken(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateStaffToken({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.GenerateStaffToken',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/generate-staff-token',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateStaffToken;\n}\n\n/**\n * Retrieves the signed-in staff member's open timecard and the site's task catalog.\n *\n * Call this with the staff member's StaffToken as a bearer credential. The staff\n * member is taken from that token.\n */\nexport function getTimeClockDetails(\n payload: object\n): RequestOptionsFactory<any> {\n function __getTimeClockDetails({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.GetTimeClockDetails',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/get-time-clock-details',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTimeClockDetails;\n}\n\n/**\n * Opens a timecard for the signed-in staff member (clock-in).\n *\n * Call this with the staff member's StaffToken as a bearer credential. Idempotent:\n * if the staff member already has an open timecard, it is returned with\n * `wasAlreadyOpen` set instead of opening a second one.\n */\nexport function kioskClockInTimecard(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskClockInTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.ClockInTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/clock-in',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskClockInTimecard;\n}\n\n/**\n * Closes the signed-in staff member's open timecard (clock-out). Any still-running\n * task segment is closed at the same time.\n *\n * Call this with the staff member's StaffToken as a bearer credential.\n */\nexport function kioskClockOutTimecard(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskClockOutTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.ClockOutTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/clock-out',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskClockOutTimecard;\n}\n\n/**\n * Starts a task on the signed-in staff member's open timecard. If another task is\n * already running it is closed first (a task switch).\n *\n * Call this with the staff member's StaffToken as a bearer credential.\n */\nexport function kioskStartTimecardTask(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskStartTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.StartTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/start-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskStartTimecardTask;\n}\n\n/**\n * Ends the running task on the signed-in staff member's open timecard, returning it\n * to untasked working time.\n *\n * Call this with the staff member's StaffToken as a bearer credential.\n */\nexport function kioskEndTimecardTask(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskEndTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.EndTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/end-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskEndTimecardTask;\n}\n\n/**\n * Opens a timecard for a staff member (clock-in).\n *\n * If the staff member already has an open timecard, from any source, no second\n * timecard is opened. The existing timecard is returned with `wasAlreadyOpen` set\n * to `true`.\n *\n * The call fails if the new timecard would overlap one the staff member already\n * has. For example, a timecard with a clock-out time in the future still covers\n * the moment of the clock-in.\n *\n * A staff member who clocks themselves in needs self clock-in to be enabled in the\n * site's time clock settings. Clocking in on behalf of a staff member, for example\n * from a kiosk, doesn't depend on that setting.\n */\nexport function clockInTimecard(payload: object): RequestOptionsFactory<any> {\n function __clockInTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.ClockInTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/clock-in',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __clockInTimecard;\n}\n\n/**\n * Closes the staff member's open timecard (clock-out).\n *\n * A task that is still running is closed at the same time. The call fails if the\n * staff member has no open timecard, so a second call right after a clock-out\n * fails.\n */\nexport function clockOutTimecard(payload: object): RequestOptionsFactory<any> {\n function __clockOutTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.ClockOutTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/clock-out',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __clockOutTimecard;\n}\n\n/**\n * Starts a task on the staff member's open timecard.\n *\n * If another task is already running, it is closed first, so switching tasks takes\n * a single call. The task's label and whether it's paid are copied from the site's\n * task catalog when the task starts. Later changes to the catalog don't affect it.\n */\nexport function startTimecardTask(payload: object): RequestOptionsFactory<any> {\n function __startTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.StartTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/start-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __startTimecardTask;\n}\n\n/**\n * Ends the running task on the staff member's open timecard, returning it to\n * untasked working time.\n *\n * The call fails if no task is running.\n */\nexport function endTimecardTask(payload: object): RequestOptionsFactory<any> {\n function __endTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.EndTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/end-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __endTimecardTask;\n}\n\n/**\n * Retrieves the staff member's open timecard.\n *\n * If the staff member is clocked out, no timecard is returned. Use this to show\n * whether a staff member is clocked in, working on a task, or clocked out.\n */\nexport function getOpenTimecard(payload: object): RequestOptionsFactory<any> {\n function __getOpenTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'GET' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.GetOpenTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/open',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOpenTimecard;\n}\n\n/**\n * Creates a timecard directly, for example for a manual entry.\n *\n * Provide a complete record: either a closed timecard with a clock-in and a\n * clock-out, or an open timecard with only a clock-in. The `source` of the punches\n * is set to `MANUAL`. You can provide a `reason`, which is recorded in the\n * timecard's audit trail. `locationId` is optional.\n */\nexport function createTimecard(payload: object): RequestOptionsFactory<any> {\n function __createTimecard({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.CreateTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTimecard;\n}\n\n/**\n * Updates a timecard, for example to correct a clock-in or clock-out time.\n *\n * Each time the timecard is updated, `revision` increments by 1. The current\n * `revision` must be passed when updating the timecard. This ensures you're working\n * with the latest timecard and prevents unintended overwrites.\n *\n * Only the fields in `fieldMask` are updated. You can provide a `reason`, which is\n * recorded in the timecard's audit trail.\n */\nexport function updateTimecard(payload: object): RequestOptionsFactory<any> {\n function __updateTimecard({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_3,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'PATCH' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.UpdateTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/{timecard.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTimecard;\n}\n\n/**\n * Deletes a timecard.\n *\n * You can provide a `reason`, which is recorded in the timecard's audit trail.\n */\nexport function deleteTimecard(payload: object): RequestOptionsFactory<any> {\n function __deleteTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'DELETE' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.DeleteTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/{timecardId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTimecard;\n}\n\n/** Retrieves a timecard by ID. */\nexport function getTimecard(payload: object): RequestOptionsFactory<any> {\n function __getTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'GET' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.GetTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/{timecardId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTimecard;\n}\n\n/**\n * Retrieves a list of timecards, given the provided paging, filtering, and sorting.\n *\n * You can filter by `staffMemberId`, `locationId`, `clockIn.date.utcDate`,\n * `clockOut.date.utcDate`, and `updatedDate`. Filtering and sorting by `updatedDate`\n * lets you keep a bookmark and retrieve only the timecards that changed since.\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryTimecards(payload: object): RequestOptionsFactory<any> {\n function __queryTimecards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'GET' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.QueryTimecards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_4,\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryTimecards;\n}\n\n/**\n * Retrieves the hours each staff member worked over a date range.\n *\n * The response has one row per staff member with paid, unpaid, and total hours, a\n * breakdown by location, and totals across all rows.\n *\n * A timecard counts toward the day its clock-in falls on, whenever it was clocked\n * out. A shift that crosses midnight is reported whole against the day it started\n * and doesn't appear in the next day's report. You can therefore add up reports\n * over consecutive ranges without counting an overnight shift twice.\n *\n * `locationIds` limits which locations the hours are summed over, and a staff\n * member with no timecards in those locations isn't listed. `staffMemberIds` limits\n * which rows are returned and doesn't change the hours per location. Open timecards\n * aren't included in the hours. They're returned as `openTimecardId`.\n *\n * The range can span up to 92 days. Currently, all rows are returned in a single\n * page, and `cursorPaging` is ignored.\n */\nexport function listAggregatedTimecards(\n payload: object\n): RequestOptionsFactory<any> {\n function __listAggregatedTimecards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn:\n 'wix.staff.time_clock.v1.TimecardsService.ListAggregatedTimecards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/list-aggregated',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __listAggregatedTimecards;\n}\n","/**\n * A timecard records one period of work for a staff member, from a clock-in to a\n * clock-out. A timecard is open until it has a clock-out. Daily totals are calculated\n * from timecards, not stored separately.\n */\nexport interface Timecard {\n /**\n * Timecard ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the timecard is updated.\n * To prevent conflicting changes, the current revision must be passed when\n * updating the timecard.\n *\n * Ignored when creating a timecard.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the timecard was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the timecard was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * ID of the staff member the timecard belongs to.\n * @format GUID\n */\n staffMemberId?: string;\n /** Clock-in, which starts the timecard. */\n clockIn?: ClockPunch;\n /** Clock-out, which ends the timecard. Not set while the timecard is open. */\n clockOut?: ClockPunch;\n /**\n * Tasks the staff member worked on during the timecard, in order and without\n * overlap. A break is a task that is marked as unpaid.\n * @maxSize 200\n */\n taskAssignments?: TaskAssignment[];\n /**\n * ID of the location where the work was done. Not every source, such as a POS\n * terminal, provides one. (Formerly field 6 as a required plain string, see the\n * `reserved 6` note above for why this moved to a new field number.)\n * @format GUID\n */\n locationId?: string | null;\n /**\n * Time worked during this timecard. Calculated from the clock-in, clock-out, and\n * tasks whenever the timecard is read. Ignored when creating or updating a timecard.\n *\n * Each value is rounded down to whole minutes for the timecard, so the sum over several\n * timecards can be up to 2 minutes per timecard lower than the hours returned by List\n * Aggregated Timecards. Use List Aggregated Timecards for totals over a range, and\n * this field for a single shift.\n *\n * `0` while the timecard is open, which means nothing is completed yet, not that no\n * time was worked.\n * @readonly\n */\n workedTime?: WorkedTime;\n}\n\n/** A clock-in or clock-out: the moment it happened and the source it came from. */\nexport interface ClockPunch {\n /**\n * When the clock-in or clock-out happened. `utcDate` is the exact moment. `localDate`\n * and `timeZone` are the local time and time zone recorded with it. They aren't set\n * for a live clock-in or clock-out that didn't provide a time zone.\n */\n date?: ZonedDate;\n /** Source the clock-in or clock-out came from. */\n source?: ClockSourceWithLiterals;\n /**\n * The same moment as `date`, shown in the time zone the caller requested. Calculated\n * when the timecard is read. Not set unless the request included a time zone.\n * @readonly\n */\n adjustedDate?: ZonedDate;\n /**\n * ID of the offline time clock punch this clock-in or clock-out was derived from.\n * Not set for live clock-ins and clock-outs or for automatic clock-outs by the system.\n * @format GUID\n */\n timeClockPunchId?: string | null;\n}\n\n/**\n * A moment in time, with the local time and time zone it was recorded in.\n *\n * `utcDate` is the exact moment. `localDate` and `timeZone` are the local time and\n * IANA time zone recorded with it. They're stored as provided, so the recorded local\n * time doesn't change if time zone rules change later.\n *\n * When writing, provide `localDate` and `timeZone`. The server calculates `utcDate`\n * from them. A live clock-in or clock-out can have only a `utcDate` set by the server,\n * with `localDate` and `timeZone` not set. When reading, the recorded values are\n * returned as stored. The `adjusted` fields on a clock-in, clock-out, or task show the\n * same moment in the time zone you request.\n */\nexport interface ZonedDate {\n /**\n * Recorded local date and time in `YYYY-MM-DDThh:mm:ss` format, for example\n * `2026-07-01T09:00:00`. Interpreted in `timeZone`. Not set when the recorded time\n * zone is unknown.\n * @format LOCAL_DATE_TIME\n */\n localDate?: string | null;\n /**\n * Recorded time zone in IANA format, for example `America/New_York`. Not set when\n * unknown, for example for a live clock-in that didn't provide one.\n * @maxLength 50\n */\n timeZone?: string | null;\n /**\n * The exact moment, in UTC. Calculated from `localDate` and `timeZone` when writing, or\n * set by the server for a live clock-in or clock-out.\n * @readonly\n */\n utcDate?: Date | null;\n}\n\n/** Source a clock-in or clock-out came from. */\nexport enum ClockSource {\n /** Staff Hub kiosk. */\n KIOSK = 'KIOSK',\n /** Wix Owner app. */\n OWNER_APP = 'OWNER_APP',\n /** Point of sale terminal. */\n POS_TERMINAL = 'POS_TERMINAL',\n /** Manual entry or edit by an admin. */\n MANUAL = 'MANUAL',\n /** The system, for example an automatic clock-out. */\n SYSTEM = 'SYSTEM',\n}\n\n/** @enumType */\nexport type ClockSourceWithLiterals =\n | ClockSource\n | 'KIOSK'\n | 'OWNER_APP'\n | 'POS_TERMINAL'\n | 'MANUAL'\n | 'SYSTEM';\n\n/** A task a staff member worked on during a timecard. */\nexport interface TaskAssignment {\n /**\n * ID of the task, from the site's task catalog in the time clock settings.\n * @format GUID\n */\n taskId?: string;\n /** When the task started. */\n startDate?: ZonedDate;\n /** When the task ended. Not set while the task is running. */\n endDate?: ZonedDate;\n /**\n * Task label, copied from the task catalog when the task started.\n * @maxLength 100\n */\n label?: string;\n /**\n * Whether the task counts as paid time. Copied from the task catalog when the task\n * started. When `false`, the task's time is deducted from paid hours.\n */\n paid?: boolean;\n /**\n * The same moment as `startDate`, shown in the time zone the caller requested.\n * Calculated when the timecard is read. Not set unless the request included a time\n * zone.\n * @readonly\n */\n adjustedStartDate?: ZonedDate;\n /**\n * The same moment as `endDate`, shown in the time zone the caller requested.\n * Calculated when the timecard is read. Not set unless the request included a time\n * zone, or while the task is running.\n * @readonly\n */\n adjustedEndDate?: ZonedDate;\n}\n\n/**\n * Worked time split into paid, unpaid, and total, in minutes. The total is the paid time\n * plus the unpaid time.\n */\nexport interface WorkedTime {\n /** Paid time, in minutes. Doesn't include unpaid tasks. */\n paidDurationInMinutes?: string | null;\n /** Unpaid time, in minutes, such as breaks. */\n unpaidDurationInMinutes?: string | null;\n /** Total time, in minutes: paid time plus unpaid time. */\n totalDurationInMinutes?: string | null;\n}\n\nexport interface GenerateStaffTokenRequest {\n /**\n * Hash of the PIN the staff member entered, as uppercase hex, computed as\n * `SHA-256(\"Pin(symbols=[1, 2, 3, 4])|<metaSiteId>\")` over the entered digits and\n * the site ID from the device's pairing context.\n * @minLength 64\n * @maxLength 64\n */\n pin: string;\n}\n\nexport interface GenerateStaffTokenResponse {\n /**\n * Short-lived token identifying the staff member for the rest of their kiosk\n * session. Treat it as opaque and don't decode it: anyone holding it can act as\n * this staff member until it expires.\n * @maxLength 4096\n */\n staffToken?: string;\n /**\n * The staff member's display name, for the greeting shown after a correct PIN.\n * @maxLength 40\n */\n displayName?: string | null;\n /**\n * Date and time the staff token expires. After this, the staff member must\n * enter their PIN again to get a new token.\n */\n expirationDate?: Date | null;\n}\n\nexport interface GetTimeClockDetailsRequest {}\n\nexport interface GetTimeClockDetailsResponse {\n /** The staff member's open timecard. Unset when they're clocked out. */\n openTimecard?: Timecard;\n /**\n * The site's task catalog. A site has at most 100 tasks.\n * @maxSize 100\n */\n tasks?: Task[];\n}\n\n/**\n * A configurable task (shift segment). A task marked `paid = false` is unpaid\n * time (e.g. an unpaid lunch break) and its duration is deducted from net hours.\n */\nexport interface Task {\n /**\n * Task identifier (GUID). Assigned when a task is first created; send it back\n * on updates to modify an existing task. Tasks are matched by id, so duplicate\n * labels are allowed.\n * @format GUID\n */\n id?: string | null;\n /**\n * Human label shown to owners and staff (e.g. \"Lunch\", \"Training\").\n * @maxLength 100\n */\n label?: string;\n /** Whether time spent on this task counts as paid working time. */\n paid?: boolean;\n}\n\nexport interface ClockInTimecardRequest {\n /**\n * ID of the staff member to clock in.\n *\n * Required when clocking in on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /** Source the clock-in came from. */\n source?: ClockSourceWithLiterals;\n /**\n * Time zone in IANA format, for example `America/New_York`.\n *\n * The clock-in time is always set by the server. If you provide a time zone, it's\n * recorded on the clock-in and used to display the `adjusted` dates in the response.\n *\n * Default: No recorded time zone, and `adjusted` dates are in UTC.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n /**\n * ID of the location of the clock-in. Not every source, such as a POS terminal,\n * provides one. (Formerly field 2 as a required plain string.)\n * @format GUID\n */\n locationId?: string | null;\n}\n\nexport interface ClockInTimecardResponse {\n /**\n * Open timecard. If the staff member was already clocked in, this is their\n * existing timecard.\n */\n timecard?: Timecard;\n /**\n * Whether the staff member already had an open timecard. When `true`, no new\n * timecard was created.\n */\n wasAlreadyOpen?: boolean;\n}\n\nexport interface ClockOutTimecardRequest {\n /**\n * ID of the staff member to clock out.\n *\n * Required when clocking out on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /** Source the clock-out came from. */\n source?: ClockSourceWithLiterals;\n /**\n * Time zone in IANA format, recorded on the clock-out and used to display the\n * `adjusted` dates in the response. See `time_zone` in the clock-in request.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface ClockOutTimecardResponse {\n /** Closed timecard. */\n timecard?: Timecard;\n}\n\nexport interface StartTimecardTaskRequest {\n /**\n * ID of the staff member to start the task for.\n *\n * Required when starting a task on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /**\n * ID of the task to start, from the site's task catalog.\n * @format GUID\n */\n taskId?: string;\n /**\n * Time zone in IANA format, recorded on the task start and used to display the\n * `adjusted` dates in the response. See `time_zone` in the clock-in request.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface StartTimecardTaskResponse {\n /** Updated timecard. */\n timecard?: Timecard;\n}\n\nexport interface EndTimecardTaskRequest {\n /**\n * ID of the staff member to end the task for.\n *\n * Required when ending a task on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /**\n * Time zone in IANA format, recorded on the task end and used to display the\n * `adjusted` dates in the response. See `time_zone` in the clock-in request.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface EndTimecardTaskResponse {\n /** Updated timecard. */\n timecard?: Timecard;\n}\n\nexport interface SendPinSetupLinkRequest {\n /**\n * Email address the staff member typed at the kiosk.\n * @format EMAIL\n * @maxLength 320\n */\n email?: string;\n}\n\nexport interface SendPinSetupLinkResponse {}\n\nexport interface CompletePinSetupRequest {\n /**\n * PIN Setup Token from the PIN setup link.\n * @maxLength 4096\n */\n pinSetupToken?: string;\n /**\n * Hash of the new PIN, in the same format as `GenerateStaffTokenRequest.pin`.\n * @minLength 64\n * @maxLength 64\n */\n pin?: string;\n}\n\nexport interface CompletePinSetupResponse {}\n\nexport interface ValidatePinSetupLinkRequest {\n /**\n * PIN Setup Token from the PIN setup link.\n * @maxLength 4096\n */\n pinSetupToken?: string;\n}\n\nexport interface ValidatePinSetupLinkResponse {}\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\nexport interface CloseTimecardRequest {\n /**\n * ID of the timecard to close.\n * @format GUID\n */\n timecardId?: string;\n /**\n * Clock-out to close the timecard with. Include its `date` (`localDate` and\n * `timeZone`), its `source`, and the `timeClockPunchId` it came from.\n * It either closes an open timecard or replaces a clock-out that the system\n * recorded automatically.\n */\n clockOut?: ClockPunch;\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface CloseTimecardResponse {\n /** Closed timecard. */\n timecard?: Timecard;\n}\n\nexport interface GetOpenTimecardRequest {\n /**\n * ID of the staff member whose open timecard to retrieve.\n *\n * Default: The staff member identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /**\n * Time zone in IANA format, for example `America/New_York`. Used to display the\n * `adjusted` dates in the returned timecard. The recorded `date` is always returned\n * as stored.\n *\n * Default: `UTC`\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface GetOpenTimecardResponse {\n /** Retrieved open timecard. Not set when the staff member is clocked out. */\n timecard?: Timecard;\n}\n\nexport interface CreateTimecardRequest {\n /** Timecard to create. */\n timecard: Timecard;\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface CreateTimecardResponse {\n /** Created timecard. */\n timecard?: Timecard;\n}\n\nexport interface UpdateTimecardRequest {\n /** Timecard to update. It can contain only the fields you want to change. */\n timecard: Timecard;\n /**\n * Fields to update.\n *\n * Default: The fields included in `timecard`.\n * @internal\n */\n fieldMask?: string[];\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface UpdateTimecardResponse {\n /** Updated timecard. */\n timecard?: Timecard;\n}\n\nexport interface DeleteTimecardRequest {\n /**\n * ID of the timecard to delete.\n * @format GUID\n */\n timecardId: string;\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface DeleteTimecardResponse {}\n\nexport interface GetTimecardRequest {\n /**\n * ID of the timecard to retrieve.\n * @format GUID\n */\n timecardId: string;\n /**\n * Time zone in IANA format, for example `America/New_York`. Used to display the\n * `adjusted` dates in the returned timecard. The recorded `date` is always returned\n * as stored.\n *\n * Default: `UTC`\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface GetTimecardResponse {\n /** Retrieved timecard. */\n timecard?: Timecard;\n}\n\nexport interface QueryTimecardsRequest {\n /**\n * Query options. You can filter by `staffMemberId`, `locationId`,\n * `clockIn.date.utcDate`, `clockOut.date.utcDate`, and `updatedDate`.\n * To report hours per staff member over a range of local dates, use List\n * Aggregated Timecards instead.\n */\n query?: CursorQuery;\n /**\n * Time zone in IANA format, for example `America/New_York`. Used to display the\n * `adjusted` dates in the returned timecards. The recorded `date` is always\n * returned as stored.\n *\n * Default: `UTC`\n * @maxLength 50\n */\n timeZone?: string | null;\n /**\n * Whether to read from the primary database, so a timecard written just before this\n * call is included.\n *\n * Default: `false`\n * @internal\n */\n consistentRead?: boolean;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\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 in the results.\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 QueryTimecardsResponse {\n /** Retrieved timecards. */\n timecards?: Timecard[];\n /** Metadata for the paged results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\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 ListAggregatedTimecardsRequest {\n /**\n * First day of the reporting range, inclusive. Interpreted in `timeZone`, so the\n * range starts at the beginning of this day. A timecard is included when its\n * clock-in falls within the range, whenever it was clocked out.\n * @format LOCAL_DATE\n */\n fromLocalDate: string | null;\n /**\n * Last day of the reporting range, inclusive. Interpreted in `timeZone`, so the\n * range ends at the end of this day.\n *\n * Supports a range of up to 92 days.\n * @format LOCAL_DATE\n */\n toLocalDate: string | null;\n /**\n * Time zone in IANA format, for example `America/New_York`. Day boundaries and the\n * range are interpreted in this time zone.\n * @maxLength 50\n */\n timeZone: string | null;\n /**\n * IDs of the locations to sum hours over. A staff member with no timecards in these\n * locations isn't listed.\n *\n * Default: All locations.\n * @maxSize 200\n * @format GUID\n */\n locationIds?: string[];\n /**\n * IDs of the staff members to return. Doesn't change the hours calculated per\n * location.\n *\n * Default: All staff members with timecards in the range.\n * @maxSize 500\n * @format GUID\n */\n staffMemberIds?: string[];\n /**\n * Cursor paging options for the staff member rows.\n *\n * Currently ignored: all rows are returned in a single page.\n */\n cursorPaging?: CursorPaging;\n /**\n * Whether to read from the primary database, so a timecard created or updated just\n * before this call is included in the hours. Reading from the primary is slower, so\n * use it only right after a write.\n *\n * Default: `false`, which reads from a replica that can be slightly out of date.\n */\n consistentRead?: boolean;\n}\n\nexport interface ListAggregatedTimecardsResponse {\n /**\n * Hours per staff member over the range and locations.\n * @maxSize 1000\n */\n aggregatedTimecards?: AggregatedTimecard[];\n /** Totals across all staff members in the result. */\n totals?: TimecardsTotals;\n /** Metadata for the paged results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\n/** Hours a staff member worked over the reporting range. */\nexport interface AggregatedTimecard {\n /**\n * ID of the staff member the hours belong to.\n * @format GUID\n */\n staffMemberId?: string;\n /**\n * Paid, unpaid, and total hours, summed over the staff member's timecards in the\n * range.\n */\n workedTime?: WorkedTime;\n /**\n * ID of the staff member's open timecard in the range. Not set when there is none.\n *\n * Open timecards aren't included in `workedTime`, so when this is set, the hours are\n * provisional. Resolve the open timecard before exporting hours for payroll.\n * @format GUID\n */\n openTimecardId?: string | null;\n /**\n * Hours by location. Only locations in the request's `locationIds` appear. Timecards\n * with no recorded location are combined into a single row with no `locationId`.\n * @maxSize 200\n */\n byLocation?: LocationWorkedTime[];\n /**\n * IDs of the timecards in `workedTime` that the system closed automatically instead of\n * the staff member. Ordered by clock-in, oldest first. Empty when there are none.\n *\n * The hours of these timecards end at the site's automatic clock-out threshold, not at\n * a time the staff member recorded, so check them before exporting hours for payroll.\n * A timecard drops out of this list after a manual correction.\n * @maxSize 200\n * @format GUID\n */\n autoClockOutTimecardIds?: string[];\n}\n\n/**\n * Hours a staff member worked at a single location. `locationId` is not set for the row\n * that combines timecards with no recorded location.\n */\nexport interface LocationWorkedTime {\n /** Paid, unpaid, and total hours at this location. */\n workedTime?: WorkedTime;\n /**\n * ID of the location the time was worked at. Not set for the row that combines\n * timecards with no recorded location. (Formerly field 1 as a required plain string.)\n * @format GUID\n */\n locationId?: string | null;\n}\n\n/** Totals across all staff members in the result. */\nexport interface TimecardsTotals {\n /** Paid, unpaid, and total hours across all staff members. */\n workedTime?: WorkedTime;\n /** Number of staff members in the result. */\n staffCount?: number;\n /**\n * Number of staff members who have an open timecard in the range. Their hours are\n * provisional.\n */\n openTimecardCount?: number;\n}\n\nexport interface Empty {}\n\n/** @docsIgnore */\nexport type GenerateStaffTokenApplicationErrors =\n | {\n code?: 'STAFF_PIN_NOT_RECOGNIZED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'KIOSK_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'KIOSK_UNPAIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type GetTimeClockDetailsApplicationErrors =\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskClockInTimecardApplicationErrors =\n | {\n code?: 'KIOSK_STAFF_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'TIMECARD_OVERLAP';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskClockOutTimecardApplicationErrors =\n | {\n code?: 'STAFF_NOT_CLOCKED_IN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskStartTimecardTaskApplicationErrors =\n | {\n code?: 'KIOSK_STAFF_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_NOT_CLOCKED_IN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_TASK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskEndTimecardTaskApplicationErrors =\n | {\n code?: 'STAFF_NOT_CLOCKED_IN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_OPEN_TASK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixStaffTimeClockV1Timecard from './staff-time-clock-v1-timecard-timecards.http.js';\nimport * as ambassadorWixStaffTimeClockV1TimecardTypes from './staff-time-clock-v1-timecard-timecards.types.js';\nimport * as ambassadorWixStaffTimeClockV1TimecardUniversalTypes from './staff-time-clock-v1-timecard-timecards.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 generateStaffToken(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GenerateStaffTokenRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GenerateStaffTokenRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GenerateStaffTokenResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GenerateStaffTokenResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.generateStaffToken(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: '/v1/timecards/generate-staff-token',\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 getTimeClockDetails(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimeClockDetailsRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimeClockDetailsRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimeClockDetailsResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimeClockDetailsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.getTimeClockDetails(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: '/v1/timecards/get-time-clock-details',\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 kioskClockInTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskClockInTimecard(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: '/v1/timecards/clock-in',\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 kioskClockOutTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskClockOutTimecard(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: '/v1/timecards/clock-out',\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 kioskStartTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskStartTimecardTask(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: '/v1/timecards/start-task',\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 kioskEndTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskEndTimecardTask(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: '/v1/timecards/end-task',\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 clockInTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.clockInTimecard(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: '/v1/timecards/clock-in',\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 clockOutTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.clockOutTimecard(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: '/v1/timecards/clock-out',\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 startTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.startTimecardTask(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: '/v1/timecards/start-task',\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 endTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.endTimecardTask(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: '/v1/timecards/end-task',\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 getOpenTimecard(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetOpenTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetOpenTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetOpenTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetOpenTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.getOpenTimecard(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: '/v1/timecards/open',\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 createTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.CreateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.CreateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.CreateTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.CreateTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.createTimecard(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: '/v1/timecards',\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 updateTimecard(): __PublicMethodMetaInfo<\n 'PATCH',\n { timecardId: string },\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.UpdateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.UpdateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.UpdateTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.UpdateTimecardResponse\n> {\n const payload = { timecard: { id: ':timecardId' } } as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.updateTimecard(payload);\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/timecards/{timecard.id}',\n pathParams: { timecardId: 'timecardId' },\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 deleteTimecard(): __PublicMethodMetaInfo<\n 'DELETE',\n { timecardId: string },\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.DeleteTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.DeleteTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.DeleteTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.DeleteTimecardResponse\n> {\n const payload = { timecardId: ':timecardId' } as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.deleteTimecard(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: '/v1/timecards/{timecardId}',\n pathParams: { timecardId: 'timecardId' },\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 getTimecard(): __PublicMethodMetaInfo<\n 'GET',\n { timecardId: string },\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimecardResponse\n> {\n const payload = { timecardId: ':timecardId' } as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.getTimecard(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: '/v1/timecards/{timecardId}',\n pathParams: { timecardId: 'timecardId' },\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 queryTimecards(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.QueryTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.QueryTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.QueryTimecardsResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.QueryTimecardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.queryTimecards(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: '/v1/timecards/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 listAggregatedTimecards(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ListAggregatedTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ListAggregatedTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ListAggregatedTimecardsResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ListAggregatedTimecardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.listAggregatedTimecards(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: '/v1/timecards/list-aggregated',\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 Timecard as TimecardOriginal,\n ClockPunch as ClockPunchOriginal,\n ZonedDate as ZonedDateOriginal,\n ClockSource as ClockSourceOriginal,\n ClockSourceWithLiterals as ClockSourceWithLiteralsOriginal,\n TaskAssignment as TaskAssignmentOriginal,\n WorkedTime as WorkedTimeOriginal,\n GenerateStaffTokenRequest as GenerateStaffTokenRequestOriginal,\n GenerateStaffTokenResponse as GenerateStaffTokenResponseOriginal,\n GetTimeClockDetailsRequest as GetTimeClockDetailsRequestOriginal,\n GetTimeClockDetailsResponse as GetTimeClockDetailsResponseOriginal,\n Task as TaskOriginal,\n ClockInTimecardRequest as ClockInTimecardRequestOriginal,\n ClockInTimecardResponse as ClockInTimecardResponseOriginal,\n ClockOutTimecardRequest as ClockOutTimecardRequestOriginal,\n ClockOutTimecardResponse as ClockOutTimecardResponseOriginal,\n StartTimecardTaskRequest as StartTimecardTaskRequestOriginal,\n StartTimecardTaskResponse as StartTimecardTaskResponseOriginal,\n EndTimecardTaskRequest as EndTimecardTaskRequestOriginal,\n EndTimecardTaskResponse as EndTimecardTaskResponseOriginal,\n SendPinSetupLinkRequest as SendPinSetupLinkRequestOriginal,\n SendPinSetupLinkResponse as SendPinSetupLinkResponseOriginal,\n CompletePinSetupRequest as CompletePinSetupRequestOriginal,\n CompletePinSetupResponse as CompletePinSetupResponseOriginal,\n ValidatePinSetupLinkRequest as ValidatePinSetupLinkRequestOriginal,\n ValidatePinSetupLinkResponse as ValidatePinSetupLinkResponseOriginal,\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 CloseTimecardRequest as CloseTimecardRequestOriginal,\n CloseTimecardResponse as CloseTimecardResponseOriginal,\n GetOpenTimecardRequest as GetOpenTimecardRequestOriginal,\n GetOpenTimecardResponse as GetOpenTimecardResponseOriginal,\n CreateTimecardRequest as CreateTimecardRequestOriginal,\n CreateTimecardResponse as CreateTimecardResponseOriginal,\n UpdateTimecardRequest as UpdateTimecardRequestOriginal,\n UpdateTimecardResponse as UpdateTimecardResponseOriginal,\n DeleteTimecardRequest as DeleteTimecardRequestOriginal,\n DeleteTimecardResponse as DeleteTimecardResponseOriginal,\n GetTimecardRequest as GetTimecardRequestOriginal,\n GetTimecardResponse as GetTimecardResponseOriginal,\n QueryTimecardsRequest as QueryTimecardsRequestOriginal,\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 QueryTimecardsResponse as QueryTimecardsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n ListAggregatedTimecardsRequest as ListAggregatedTimecardsRequestOriginal,\n ListAggregatedTimecardsResponse as ListAggregatedTimecardsResponseOriginal,\n AggregatedTimecard as AggregatedTimecardOriginal,\n LocationWorkedTime as LocationWorkedTimeOriginal,\n TimecardsTotals as TimecardsTotalsOriginal,\n Empty as EmptyOriginal,\n GenerateStaffTokenApplicationErrors as GenerateStaffTokenApplicationErrorsOriginal,\n GetTimeClockDetailsApplicationErrors as GetTimeClockDetailsApplicationErrorsOriginal,\n KioskClockInTimecardApplicationErrors as KioskClockInTimecardApplicationErrorsOriginal,\n KioskClockOutTimecardApplicationErrors as KioskClockOutTimecardApplicationErrorsOriginal,\n KioskStartTimecardTaskApplicationErrors as KioskStartTimecardTaskApplicationErrorsOriginal,\n KioskEndTimecardTaskApplicationErrors as KioskEndTimecardTaskApplicationErrorsOriginal,\n} from './staff-time-clock-v1-timecard-timecards.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;A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AAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACkC,eAAe,OAAO;AAE9D,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,oBACkC,wBAAwB,OAAO;AAEvE,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":["clockInTimecard","clockOutTimecard","createTimecard","deleteTimecard","endTimecardTask","generateStaffToken","getOpenTimecard","getTimeClockDetails","getTimecard","kioskClockInTimecard","kioskClockOutTimecard","kioskEndTimecardTask","kioskStartTimecardTask","listAggregatedTimecards","queryTimecards","startTimecardTask","updateTimecard","import_timestamp","import_rest_modules","payload","ClockSource","WebhookIdentityType","SortOrder","generateStaffToken","getTimeClockDetails","kioskClockInTimecard","kioskClockOutTimecard","kioskStartTimecardTask","kioskEndTimecardTask","clockInTimecard","clockOutTimecard","startTimecardTask","endTimecardTask","getOpenTimecard","createTimecard","updateTimecard","deleteTimecard","getTimecard","queryTimecards","listAggregatedTimecards"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/staff-time-clock-v1-timecard-timecards.http.ts","../../src/staff-time-clock-v1-timecard-timecards.types.ts","../../src/staff-time-clock-v1-timecard-timecards.meta.ts"],"sourcesContent":["export * from './src/staff-time-clock-v1-timecard-timecards.meta.js';\n","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\nconst TRANSFORM_PATHS_0 = [{ path: 'expirationDate' }];\nconst TRANSFORM_PATHS_1 = [\n { path: 'openTimecard.createdDate' },\n { path: 'openTimecard.updatedDate' },\n { path: 'openTimecard.clockIn.date.utcDate' },\n { path: 'openTimecard.clockIn.adjustedDate.utcDate' },\n { path: 'openTimecard.clockOut.date.utcDate' },\n { path: 'openTimecard.clockOut.adjustedDate.utcDate' },\n { path: 'openTimecard.taskAssignments.startDate.utcDate' },\n { path: 'openTimecard.taskAssignments.endDate.utcDate' },\n { path: 'openTimecard.taskAssignments.adjustedStartDate.utcDate' },\n { path: 'openTimecard.taskAssignments.adjustedEndDate.utcDate' },\n];\nconst TRANSFORM_PATHS_2 = [\n { path: 'timecard.createdDate' },\n { path: 'timecard.updatedDate' },\n { path: 'timecard.clockIn.date.utcDate' },\n { path: 'timecard.clockIn.adjustedDate.utcDate' },\n { path: 'timecard.clockOut.date.utcDate' },\n { path: 'timecard.clockOut.adjustedDate.utcDate' },\n { path: 'timecard.taskAssignments.startDate.utcDate' },\n { path: 'timecard.taskAssignments.endDate.utcDate' },\n { path: 'timecard.taskAssignments.adjustedStartDate.utcDate' },\n { path: 'timecard.taskAssignments.adjustedEndDate.utcDate' },\n];\nconst TRANSFORM_PATHS_3 = [{ path: 'fieldMask' }];\nconst TRANSFORM_PATHS_4 = [\n { path: 'timecards.createdDate' },\n { path: 'timecards.updatedDate' },\n { path: 'timecards.clockIn.date.utcDate' },\n { path: 'timecards.clockIn.adjustedDate.utcDate' },\n { path: 'timecards.clockOut.date.utcDate' },\n { path: 'timecards.clockOut.adjustedDate.utcDate' },\n { path: 'timecards.taskAssignments.startDate.utcDate' },\n { path: 'timecards.taskAssignments.endDate.utcDate' },\n { path: 'timecards.taskAssignments.adjustedStartDate.utcDate' },\n { path: 'timecards.taskAssignments.adjustedEndDate.utcDate' },\n];\n\nfunction resolveWixStaffTimeClockV1TimecardsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/timecard',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixStaffKioskV1KioskSessionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/v1/timecards',\n destPath: '/v1/timecards',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_staff-time-clock_timecards';\n\n/**\n * Exchanges a staff member's PIN hash for a short-lived StaffToken.\n *\n * Call this with the device's Kiosk Token as a bearer credential. The site and\n * location are taken from that token.\n *\n * A PIN that matches no staff member and a staff member who has no PIN return the\n * same error, with no detail distinguishing them.\n */\nexport function generateStaffToken(\n payload: object\n): RequestOptionsFactory<any> {\n function __generateStaffToken({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.GenerateStaffToken',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/generate-staff-token',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateStaffToken;\n}\n\n/**\n * Retrieves the signed-in staff member's open timecard and the site's task catalog.\n *\n * Call this with the staff member's StaffToken as a bearer credential. The staff\n * member is taken from that token.\n */\nexport function getTimeClockDetails(\n payload: object\n): RequestOptionsFactory<any> {\n function __getTimeClockDetails({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.GetTimeClockDetails',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/get-time-clock-details',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTimeClockDetails;\n}\n\n/**\n * Opens a timecard for the signed-in staff member (clock-in).\n *\n * Call this with the staff member's StaffToken as a bearer credential. Idempotent:\n * if the staff member already has an open timecard, it is returned with\n * `wasAlreadyOpen` set instead of opening a second one.\n */\nexport function kioskClockInTimecard(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskClockInTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.ClockInTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/clock-in',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskClockInTimecard;\n}\n\n/**\n * Closes the signed-in staff member's open timecard (clock-out). Any still-running\n * task segment is closed at the same time.\n *\n * Call this with the staff member's StaffToken as a bearer credential.\n */\nexport function kioskClockOutTimecard(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskClockOutTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.ClockOutTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/clock-out',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskClockOutTimecard;\n}\n\n/**\n * Starts a task on the signed-in staff member's open timecard. If another task is\n * already running it is closed first (a task switch).\n *\n * Call this with the staff member's StaffToken as a bearer credential.\n */\nexport function kioskStartTimecardTask(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskStartTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.StartTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/start-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskStartTimecardTask;\n}\n\n/**\n * Ends the running task on the signed-in staff member's open timecard, returning it\n * to untasked working time.\n *\n * Call this with the staff member's StaffToken as a bearer credential.\n */\nexport function kioskEndTimecardTask(\n payload: object\n): RequestOptionsFactory<any> {\n function __kioskEndTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.kiosk.v1.KioskSessionService.EndTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffKioskV1KioskSessionServiceUrl({\n protoPath: '/v1/timecards/end-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __kioskEndTimecardTask;\n}\n\n/**\n * Opens a timecard for a staff member (clock-in).\n *\n * If the staff member already has an open timecard, from any source, no second\n * timecard is opened. The existing timecard is returned with `wasAlreadyOpen` set\n * to `true`.\n *\n * The call fails if the new timecard would overlap one the staff member already\n * has. For example, a timecard with a clock-out time in the future still covers\n * the moment of the clock-in.\n *\n * A staff member who clocks themselves in needs self clock-in to be enabled in the\n * site's time clock settings. Clocking in on behalf of a staff member, for example\n * from a kiosk, doesn't depend on that setting.\n */\nexport function clockInTimecard(payload: object): RequestOptionsFactory<any> {\n function __clockInTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.ClockInTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/clock-in',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __clockInTimecard;\n}\n\n/**\n * Closes the staff member's open timecard (clock-out).\n *\n * A task that is still running is closed at the same time. The call fails if the\n * staff member has no open timecard, so a second call right after a clock-out\n * fails.\n */\nexport function clockOutTimecard(payload: object): RequestOptionsFactory<any> {\n function __clockOutTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.ClockOutTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/clock-out',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __clockOutTimecard;\n}\n\n/**\n * Starts a task on the staff member's open timecard.\n *\n * If another task is already running, it is closed first, so switching tasks takes\n * a single call. The task's label and whether it's paid are copied from the site's\n * task catalog when the task starts. Later changes to the catalog don't affect it.\n */\nexport function startTimecardTask(payload: object): RequestOptionsFactory<any> {\n function __startTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.StartTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/start-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __startTimecardTask;\n}\n\n/**\n * Ends the running task on the staff member's open timecard, returning it to\n * untasked working time.\n *\n * The call fails if no task is running.\n */\nexport function endTimecardTask(payload: object): RequestOptionsFactory<any> {\n function __endTimecardTask({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.EndTimecardTask',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/end-task',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __endTimecardTask;\n}\n\n/**\n * Retrieves the staff member's open timecard.\n *\n * If the staff member is clocked out, no timecard is returned. Use this to show\n * whether a staff member is clocked in, working on a task, or clocked out.\n */\nexport function getOpenTimecard(payload: object): RequestOptionsFactory<any> {\n function __getOpenTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'GET' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.GetOpenTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/open',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOpenTimecard;\n}\n\n/**\n * Creates a timecard directly, for example for a manual entry.\n *\n * Provide a complete record: either a closed timecard with a clock-in and a\n * clock-out, or an open timecard with only a clock-in. The `source` of the punches\n * is set to `MANUAL`. You can provide a `reason`, which is recorded in the\n * timecard's audit trail. `locationId` is optional.\n */\nexport function createTimecard(payload: object): RequestOptionsFactory<any> {\n function __createTimecard({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.CreateTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTimecard;\n}\n\n/**\n * Updates a timecard, for example to correct a clock-in or clock-out time.\n *\n * Each time the timecard is updated, `revision` increments by 1. The current\n * `revision` must be passed when updating the timecard. This ensures you're working\n * with the latest timecard and prevents unintended overwrites.\n *\n * Only the fields in `fieldMask` are updated. You can provide a `reason`, which is\n * recorded in the timecard's audit trail.\n */\nexport function updateTimecard(payload: object): RequestOptionsFactory<any> {\n function __updateTimecard({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_3,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'PATCH' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.UpdateTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/{timecard.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTimecard;\n}\n\n/**\n * Deletes a timecard.\n *\n * You can provide a `reason`, which is recorded in the timecard's audit trail.\n */\nexport function deleteTimecard(payload: object): RequestOptionsFactory<any> {\n function __deleteTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'DELETE' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.DeleteTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/{timecardId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTimecard;\n}\n\n/** Retrieves a timecard by ID. */\nexport function getTimecard(payload: object): RequestOptionsFactory<any> {\n function __getTimecard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'GET' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.GetTimecard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/{timecardId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getTimecard;\n}\n\n/**\n * Retrieves a list of timecards, given the provided paging, filtering, and sorting.\n *\n * You can filter by `staffMemberId`, `locationId`, `clockIn.date.utcDate`,\n * `clockOut.date.utcDate`, and `updatedDate`. Filtering and sorting by `updatedDate`\n * lets you keep a bookmark and retrieve only the timecards that changed since.\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryTimecards(payload: object): RequestOptionsFactory<any> {\n function __queryTimecards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'GET' as any,\n methodFqn: 'wix.staff.time_clock.v1.TimecardsService.QueryTimecards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_4,\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryTimecards;\n}\n\n/**\n * Retrieves the hours each staff member worked over a date range.\n *\n * The response has one row per staff member with paid, unpaid, and total hours, a\n * breakdown by location, and totals across all rows.\n *\n * A timecard counts toward the day its clock-in falls on, whenever it was clocked\n * out. A shift that crosses midnight is reported whole against the day it started\n * and doesn't appear in the next day's report. You can therefore add up reports\n * over consecutive ranges without counting an overnight shift twice.\n *\n * `locationIds` limits which locations the hours are summed over, and a staff\n * member with no timecards in those locations isn't listed. `staffMemberIds` limits\n * which rows are returned and doesn't change the hours per location. Open timecards\n * aren't included in the hours. They're returned as `openTimecardId`.\n *\n * The range can span up to 92 days. Currently, all rows are returned in a single\n * page, and `cursorPaging` is ignored.\n */\nexport function listAggregatedTimecards(\n payload: object\n): RequestOptionsFactory<any> {\n function __listAggregatedTimecards({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.staff.time_clock.v1.timecard',\n method: 'POST' as any,\n methodFqn:\n 'wix.staff.time_clock.v1.TimecardsService.ListAggregatedTimecards',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStaffTimeClockV1TimecardsServiceUrl({\n protoPath: '/v1/timecards/list-aggregated',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __listAggregatedTimecards;\n}\n","/**\n * A timecard records one period of work for a staff member, from a clock-in to a\n * clock-out. A timecard is open until it has a clock-out. Daily totals are calculated\n * from timecards, not stored separately.\n */\nexport interface Timecard {\n /**\n * Timecard ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the timecard is updated.\n * To prevent conflicting changes, the current revision must be passed when\n * updating the timecard.\n *\n * Ignored when creating a timecard.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the timecard was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the timecard was updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * ID of the staff member the timecard belongs to.\n * @format GUID\n */\n staffMemberId?: string;\n /** Clock-in, which starts the timecard. */\n clockIn?: ClockPunch;\n /** Clock-out, which ends the timecard. Not set while the timecard is open. */\n clockOut?: ClockPunch;\n /**\n * Tasks the staff member worked on during the timecard, in order and without\n * overlap. A break is a task that is marked as unpaid.\n * @maxSize 200\n */\n taskAssignments?: TaskAssignment[];\n /**\n * ID of the location where the work was done. Not every source, such as a POS\n * terminal, provides one. (Formerly field 6 as a required plain string, see the\n * `reserved 6` note above for why this moved to a new field number.)\n * @format GUID\n */\n locationId?: string | null;\n /**\n * Time worked during this timecard. Calculated from the clock-in, clock-out, and\n * tasks whenever the timecard is read. Ignored when creating or updating a timecard.\n *\n * Each value is rounded down to whole minutes for the timecard, so the sum over several\n * timecards can be up to 2 minutes per timecard lower than the hours returned by List\n * Aggregated Timecards. Use List Aggregated Timecards for totals over a range, and\n * this field for a single shift.\n *\n * `0` while the timecard is open, which means nothing is completed yet, not that no\n * time was worked.\n * @readonly\n */\n workedTime?: WorkedTime;\n}\n\n/** A clock-in or clock-out: the moment it happened and the source it came from. */\nexport interface ClockPunch {\n /**\n * When the clock-in or clock-out happened. `utcDate` is the exact moment. `localDate`\n * and `timeZone` are the local time and time zone recorded with it. They aren't set\n * for a live clock-in or clock-out that didn't provide a time zone.\n */\n date?: ZonedDate;\n /** Source the clock-in or clock-out came from. */\n source?: ClockSourceWithLiterals;\n /**\n * The same moment as `date`, shown in the time zone the caller requested. Calculated\n * when the timecard is read. Not set unless the request included a time zone.\n * @readonly\n */\n adjustedDate?: ZonedDate;\n /**\n * ID of the offline time clock punch this clock-in or clock-out was derived from.\n * Not set for live clock-ins and clock-outs or for automatic clock-outs by the system.\n * @format GUID\n */\n timeClockPunchId?: string | null;\n}\n\n/**\n * A moment in time, with the local time and time zone it was recorded in.\n *\n * `utcDate` is the exact moment. `localDate` and `timeZone` are the local time and\n * IANA time zone recorded with it. They're stored as provided, so the recorded local\n * time doesn't change if time zone rules change later.\n *\n * When writing, provide `localDate` and `timeZone`. The server calculates `utcDate`\n * from them. A live clock-in or clock-out can have only a `utcDate` set by the server,\n * with `localDate` and `timeZone` not set. When reading, the recorded values are\n * returned as stored. The `adjusted` fields on a clock-in, clock-out, or task show the\n * same moment in the time zone you request.\n */\nexport interface ZonedDate {\n /**\n * Recorded local date and time in `YYYY-MM-DDThh:mm:ss` format, for example\n * `2026-07-01T09:00:00`. Interpreted in `timeZone`. Not set when the recorded time\n * zone is unknown.\n * @format LOCAL_DATE_TIME\n */\n localDate?: string | null;\n /**\n * Recorded time zone in IANA format, for example `America/New_York`. Not set when\n * unknown, for example for a live clock-in that didn't provide one.\n * @maxLength 50\n */\n timeZone?: string | null;\n /**\n * The exact moment, in UTC. Calculated from `localDate` and `timeZone` when writing, or\n * set by the server for a live clock-in or clock-out.\n * @readonly\n */\n utcDate?: Date | null;\n}\n\n/** Source a clock-in or clock-out came from. */\nexport enum ClockSource {\n /** Staff Hub kiosk. */\n KIOSK = 'KIOSK',\n /** Wix Owner app. */\n OWNER_APP = 'OWNER_APP',\n /** Point of sale terminal. */\n POS_TERMINAL = 'POS_TERMINAL',\n /** Manual entry or edit by an admin. */\n MANUAL = 'MANUAL',\n /** The system, for example an automatic clock-out. */\n SYSTEM = 'SYSTEM',\n}\n\n/** @enumType */\nexport type ClockSourceWithLiterals =\n | ClockSource\n | 'KIOSK'\n | 'OWNER_APP'\n | 'POS_TERMINAL'\n | 'MANUAL'\n | 'SYSTEM';\n\n/** A task a staff member worked on during a timecard. */\nexport interface TaskAssignment {\n /**\n * ID of the task, from the site's task catalog in the time clock settings.\n * @format GUID\n */\n taskId?: string;\n /** When the task started. */\n startDate?: ZonedDate;\n /** When the task ended. Not set while the task is running. */\n endDate?: ZonedDate;\n /**\n * Task label, copied from the task catalog when the task started.\n * @maxLength 100\n */\n label?: string;\n /**\n * Whether the task counts as paid time. Copied from the task catalog when the task\n * started. When `false`, the task's time is deducted from paid hours.\n */\n paid?: boolean;\n /**\n * The same moment as `startDate`, shown in the time zone the caller requested.\n * Calculated when the timecard is read. Not set unless the request included a time\n * zone.\n * @readonly\n */\n adjustedStartDate?: ZonedDate;\n /**\n * The same moment as `endDate`, shown in the time zone the caller requested.\n * Calculated when the timecard is read. Not set unless the request included a time\n * zone, or while the task is running.\n * @readonly\n */\n adjustedEndDate?: ZonedDate;\n}\n\n/**\n * Worked time split into paid, unpaid, and total, in minutes. The total is the paid time\n * plus the unpaid time.\n */\nexport interface WorkedTime {\n /** Paid time, in minutes. Doesn't include unpaid tasks. */\n paidDurationInMinutes?: string | null;\n /** Unpaid time, in minutes, such as breaks. */\n unpaidDurationInMinutes?: string | null;\n /** Total time, in minutes: paid time plus unpaid time. */\n totalDurationInMinutes?: string | null;\n}\n\nexport interface GenerateStaffTokenRequest {\n /**\n * Hash of the PIN the staff member entered, as uppercase hex, computed as\n * `SHA-256(\"Pin(symbols=[1, 2, 3, 4])|<metaSiteId>\")` over the entered digits and\n * the site ID from the device's pairing context.\n * @minLength 64\n * @maxLength 64\n */\n pin: string;\n}\n\nexport interface GenerateStaffTokenResponse {\n /**\n * Short-lived token identifying the staff member for the rest of their kiosk\n * session. Treat it as opaque and don't decode it: anyone holding it can act as\n * this staff member until it expires.\n * @maxLength 4096\n */\n staffToken?: string;\n /**\n * The staff member's display name, for the greeting shown after a correct PIN.\n * @maxLength 40\n */\n displayName?: string | null;\n /**\n * Date and time the staff token expires. After this, the staff member must\n * enter their PIN again to get a new token.\n */\n expirationDate?: Date | null;\n}\n\nexport interface GetTimeClockDetailsRequest {}\n\nexport interface GetTimeClockDetailsResponse {\n /** The staff member's open timecard. Unset when they're clocked out. */\n openTimecard?: Timecard;\n /**\n * The site's task catalog. A site has at most 100 tasks.\n * @maxSize 100\n */\n tasks?: Task[];\n}\n\n/**\n * A kind of work a staff member can start during a timecard, such as \"Front\n * desk\" or \"Lunch\". Time spent on an unpaid task isn't counted as paid working\n * time.\n */\nexport interface Task {\n /**\n * Task ID. Leave empty when adding a task, and one is assigned. Pass the\n * existing ID when updating a task. Tasks are identified by ID, so 2 tasks\n * can have the same label.\n * @format GUID\n */\n id?: string | null;\n /**\n * Task name shown to staff members and managers, such as \"Lunch\" or\n * \"Training\".\n * @maxLength 100\n */\n label?: string;\n /** Whether time spent on this task counts as paid working time. */\n paid?: boolean;\n}\n\nexport interface ClockInTimecardRequest {\n /**\n * ID of the staff member to clock in.\n *\n * Required when clocking in on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /** Source the clock-in came from. */\n source?: ClockSourceWithLiterals;\n /**\n * Time zone in IANA format, for example `America/New_York`.\n *\n * The clock-in time is always set by the server. If you provide a time zone, it's\n * recorded on the clock-in and used to display the `adjusted` dates in the response.\n *\n * Default: No recorded time zone, and `adjusted` dates are in UTC.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n /**\n * ID of the location of the clock-in. Not every source, such as a POS terminal,\n * provides one. (Formerly field 2 as a required plain string.)\n * @format GUID\n */\n locationId?: string | null;\n}\n\nexport interface ClockInTimecardResponse {\n /**\n * Open timecard. If the staff member was already clocked in, this is their\n * existing timecard.\n */\n timecard?: Timecard;\n /**\n * Whether the staff member already had an open timecard. When `true`, no new\n * timecard was created.\n */\n wasAlreadyOpen?: boolean;\n}\n\nexport interface ClockOutTimecardRequest {\n /**\n * ID of the staff member to clock out.\n *\n * Required when clocking out on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /** Source the clock-out came from. */\n source?: ClockSourceWithLiterals;\n /**\n * Time zone in IANA format, recorded on the clock-out and used to display the\n * `adjusted` dates in the response. See `time_zone` in the clock-in request.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface ClockOutTimecardResponse {\n /** Closed timecard. */\n timecard?: Timecard;\n}\n\nexport interface StartTimecardTaskRequest {\n /**\n * ID of the staff member to start the task for.\n *\n * Required when starting a task on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /**\n * ID of the task to start, from the site's task catalog.\n * @format GUID\n */\n taskId?: string;\n /**\n * Time zone in IANA format, recorded on the task start and used to display the\n * `adjusted` dates in the response. See `time_zone` in the clock-in request.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface StartTimecardTaskResponse {\n /** Updated timecard. */\n timecard?: Timecard;\n}\n\nexport interface EndTimecardTaskRequest {\n /**\n * ID of the staff member to end the task for.\n *\n * Required when ending a task on behalf of a staff member, for example from a kiosk.\n * Ignored otherwise: the staff member is identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /**\n * Time zone in IANA format, recorded on the task end and used to display the\n * `adjusted` dates in the response. See `time_zone` in the clock-in request.\n * @internal\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface EndTimecardTaskResponse {\n /** Updated timecard. */\n timecard?: Timecard;\n}\n\nexport interface SendPinSetupLinkRequest {\n /**\n * Email address the staff member typed at the kiosk.\n * @format EMAIL\n * @maxLength 320\n */\n email?: string;\n}\n\nexport interface SendPinSetupLinkResponse {}\n\nexport interface CompletePinSetupRequest {\n /**\n * PIN Setup Token from the PIN setup link.\n * @maxLength 4096\n */\n pinSetupToken?: string;\n /**\n * Hash of the new PIN, in the same format as `GenerateStaffTokenRequest.pin`.\n * @minLength 64\n * @maxLength 64\n */\n pin?: string;\n}\n\nexport interface CompletePinSetupResponse {}\n\nexport interface ValidatePinSetupLinkRequest {\n /**\n * PIN Setup Token from the PIN setup link.\n * @maxLength 4096\n */\n pinSetupToken?: string;\n}\n\nexport interface ValidatePinSetupLinkResponse {}\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\nexport interface CloseTimecardRequest {\n /**\n * ID of the timecard to close.\n * @format GUID\n */\n timecardId?: string;\n /**\n * Clock-out to close the timecard with. Include its `date` (`localDate` and\n * `timeZone`), its `source`, and the `timeClockPunchId` it came from.\n * It either closes an open timecard or replaces a clock-out that the system\n * recorded automatically.\n */\n clockOut?: ClockPunch;\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface CloseTimecardResponse {\n /** Closed timecard. */\n timecard?: Timecard;\n}\n\nexport interface GetOpenTimecardRequest {\n /**\n * ID of the staff member whose open timecard to retrieve.\n *\n * Default: The staff member identified from the caller's session.\n * @format GUID\n */\n staffMemberId?: string | null;\n /**\n * Time zone in IANA format, for example `America/New_York`. Used to display the\n * `adjusted` dates in the returned timecard. The recorded `date` is always returned\n * as stored.\n *\n * Default: `UTC`\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface GetOpenTimecardResponse {\n /** Retrieved open timecard. Not set when the staff member is clocked out. */\n timecard?: Timecard;\n}\n\nexport interface CreateTimecardRequest {\n /** Timecard to create. */\n timecard: Timecard;\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface CreateTimecardResponse {\n /** Created timecard. */\n timecard?: Timecard;\n}\n\nexport interface UpdateTimecardRequest {\n /** Timecard to update. It can contain only the fields you want to change. */\n timecard: Timecard;\n /**\n * Fields to update.\n *\n * Default: The fields included in `timecard`.\n * @internal\n */\n fieldMask?: string[];\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface UpdateTimecardResponse {\n /** Updated timecard. */\n timecard?: Timecard;\n}\n\nexport interface DeleteTimecardRequest {\n /**\n * ID of the timecard to delete.\n * @format GUID\n */\n timecardId: string;\n /**\n * Reason for the change. Recorded in the timecard's audit trail. It isn't stored\n * on the timecard or returned in the response.\n * @maxLength 1000\n */\n reason?: string | null;\n}\n\nexport interface DeleteTimecardResponse {}\n\nexport interface GetTimecardRequest {\n /**\n * ID of the timecard to retrieve.\n * @format GUID\n */\n timecardId: string;\n /**\n * Time zone in IANA format, for example `America/New_York`. Used to display the\n * `adjusted` dates in the returned timecard. The recorded `date` is always returned\n * as stored.\n *\n * Default: `UTC`\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface GetTimecardResponse {\n /** Retrieved timecard. */\n timecard?: Timecard;\n}\n\nexport interface QueryTimecardsRequest {\n /**\n * Query options. You can filter by `staffMemberId`, `locationId`,\n * `clockIn.date.utcDate`, `clockOut.date.utcDate`, and `updatedDate`.\n * To report hours per staff member over a range of local dates, use List\n * Aggregated Timecards instead.\n */\n query?: CursorQuery;\n /**\n * Time zone in IANA format, for example `America/New_York`. Used to display the\n * `adjusted` dates in the returned timecards. The recorded `date` is always\n * returned as stored.\n *\n * Default: `UTC`\n * @maxLength 50\n */\n timeZone?: string | null;\n /**\n * Whether to read from the primary database, so a timecard written just before this\n * call is included.\n *\n * Default: `false`\n * @internal\n */\n consistentRead?: boolean;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\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 in the results.\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 QueryTimecardsResponse {\n /** Retrieved timecards. */\n timecards?: Timecard[];\n /** Metadata for the paged results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\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 ListAggregatedTimecardsRequest {\n /**\n * First day of the reporting range, inclusive. Interpreted in `timeZone`, so the\n * range starts at the beginning of this day. A timecard is included when its\n * clock-in falls within the range, whenever it was clocked out.\n * @format LOCAL_DATE\n */\n fromLocalDate: string | null;\n /**\n * Last day of the reporting range, inclusive. Interpreted in `timeZone`, so the\n * range ends at the end of this day.\n *\n * Supports a range of up to 92 days.\n * @format LOCAL_DATE\n */\n toLocalDate: string | null;\n /**\n * Time zone in IANA format, for example `America/New_York`. Day boundaries and the\n * range are interpreted in this time zone.\n * @maxLength 50\n */\n timeZone: string | null;\n /**\n * IDs of the locations to sum hours over. A staff member with no timecards in these\n * locations isn't listed.\n *\n * Default: All locations.\n * @maxSize 200\n * @format GUID\n */\n locationIds?: string[];\n /**\n * IDs of the staff members to return. Doesn't change the hours calculated per\n * location.\n *\n * Default: All staff members with timecards in the range.\n * @maxSize 500\n * @format GUID\n */\n staffMemberIds?: string[];\n /**\n * Cursor paging options for the staff member rows.\n *\n * Currently ignored: all rows are returned in a single page.\n */\n cursorPaging?: CursorPaging;\n /**\n * Whether to read from the primary database, so a timecard created or updated just\n * before this call is included in the hours. Reading from the primary is slower, so\n * use it only right after a write.\n *\n * Default: `false`, which reads from a replica that can be slightly out of date.\n */\n consistentRead?: boolean;\n}\n\nexport interface ListAggregatedTimecardsResponse {\n /**\n * Hours per staff member over the range and locations.\n * @maxSize 1000\n */\n aggregatedTimecards?: AggregatedTimecard[];\n /** Totals across all staff members in the result. */\n totals?: TimecardsTotals;\n /** Metadata for the paged results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\n/** Hours a staff member worked over the reporting range. */\nexport interface AggregatedTimecard {\n /**\n * ID of the staff member the hours belong to.\n * @format GUID\n */\n staffMemberId?: string;\n /**\n * Paid, unpaid, and total hours, summed over the staff member's timecards in the\n * range.\n */\n workedTime?: WorkedTime;\n /**\n * ID of the staff member's open timecard in the range. Not set when there is none.\n *\n * Open timecards aren't included in `workedTime`, so when this is set, the hours are\n * provisional. Resolve the open timecard before exporting hours for payroll.\n * @format GUID\n */\n openTimecardId?: string | null;\n /**\n * Hours by location. Only locations in the request's `locationIds` appear. Timecards\n * with no recorded location are combined into a single row with no `locationId`.\n * @maxSize 200\n */\n byLocation?: LocationWorkedTime[];\n /**\n * IDs of the timecards in `workedTime` that the system closed automatically instead of\n * the staff member. Ordered by clock-in, oldest first. Empty when there are none.\n *\n * The hours of these timecards end at the site's automatic clock-out threshold, not at\n * a time the staff member recorded, so check them before exporting hours for payroll.\n * A timecard drops out of this list after a manual correction.\n * @maxSize 200\n * @format GUID\n */\n autoClockOutTimecardIds?: string[];\n}\n\n/**\n * Hours a staff member worked at a single location. `locationId` is not set for the row\n * that combines timecards with no recorded location.\n */\nexport interface LocationWorkedTime {\n /** Paid, unpaid, and total hours at this location. */\n workedTime?: WorkedTime;\n /**\n * ID of the location the time was worked at. Not set for the row that combines\n * timecards with no recorded location. (Formerly field 1 as a required plain string.)\n * @format GUID\n */\n locationId?: string | null;\n}\n\n/** Totals across all staff members in the result. */\nexport interface TimecardsTotals {\n /** Paid, unpaid, and total hours across all staff members. */\n workedTime?: WorkedTime;\n /** Number of staff members in the result. */\n staffCount?: number;\n /**\n * Number of staff members who have an open timecard in the range. Their hours are\n * provisional.\n */\n openTimecardCount?: number;\n}\n\nexport interface Empty {}\n\n/** @docsIgnore */\nexport type GenerateStaffTokenApplicationErrors =\n | {\n code?: 'STAFF_PIN_NOT_RECOGNIZED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'KIOSK_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'KIOSK_UNPAIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type GetTimeClockDetailsApplicationErrors =\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskClockInTimecardApplicationErrors =\n | {\n code?: 'KIOSK_STAFF_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'TIMECARD_OVERLAP';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskClockOutTimecardApplicationErrors =\n | {\n code?: 'STAFF_NOT_CLOCKED_IN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskStartTimecardTaskApplicationErrors =\n | {\n code?: 'KIOSK_STAFF_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_NOT_CLOCKED_IN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNKNOWN_TASK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type KioskEndTimecardTaskApplicationErrors =\n | {\n code?: 'STAFF_NOT_CLOCKED_IN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_OPEN_TASK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'STAFF_TOKEN_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixStaffTimeClockV1Timecard from './staff-time-clock-v1-timecard-timecards.http.js';\nimport * as ambassadorWixStaffTimeClockV1TimecardTypes from './staff-time-clock-v1-timecard-timecards.types.js';\nimport * as ambassadorWixStaffTimeClockV1TimecardUniversalTypes from './staff-time-clock-v1-timecard-timecards.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 generateStaffToken(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GenerateStaffTokenRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GenerateStaffTokenRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GenerateStaffTokenResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GenerateStaffTokenResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.generateStaffToken(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: '/v1/timecards/generate-staff-token',\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 getTimeClockDetails(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimeClockDetailsRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimeClockDetailsRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimeClockDetailsResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimeClockDetailsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.getTimeClockDetails(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: '/v1/timecards/get-time-clock-details',\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 kioskClockInTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskClockInTimecard(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: '/v1/timecards/clock-in',\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 kioskClockOutTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskClockOutTimecard(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: '/v1/timecards/clock-out',\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 kioskStartTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskStartTimecardTask(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: '/v1/timecards/start-task',\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 kioskEndTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.kioskEndTimecardTask(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: '/v1/timecards/end-task',\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 clockInTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockInTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockInTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.clockInTimecard(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: '/v1/timecards/clock-in',\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 clockOutTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ClockOutTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ClockOutTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.clockOutTimecard(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: '/v1/timecards/clock-out',\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 startTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.StartTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.StartTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.startTimecardTask(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: '/v1/timecards/start-task',\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 endTimecardTask(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.EndTimecardTaskResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.EndTimecardTaskResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.endTimecardTask(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: '/v1/timecards/end-task',\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 getOpenTimecard(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetOpenTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetOpenTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetOpenTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetOpenTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.getOpenTimecard(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: '/v1/timecards/open',\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 createTimecard(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.CreateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.CreateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.CreateTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.CreateTimecardResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.createTimecard(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: '/v1/timecards',\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 updateTimecard(): __PublicMethodMetaInfo<\n 'PATCH',\n { timecardId: string },\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.UpdateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.UpdateTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.UpdateTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.UpdateTimecardResponse\n> {\n const payload = { timecard: { id: ':timecardId' } } as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.updateTimecard(payload);\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/timecards/{timecard.id}',\n pathParams: { timecardId: 'timecardId' },\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 deleteTimecard(): __PublicMethodMetaInfo<\n 'DELETE',\n { timecardId: string },\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.DeleteTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.DeleteTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.DeleteTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.DeleteTimecardResponse\n> {\n const payload = { timecardId: ':timecardId' } as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.deleteTimecard(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: '/v1/timecards/{timecardId}',\n pathParams: { timecardId: 'timecardId' },\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 getTimecard(): __PublicMethodMetaInfo<\n 'GET',\n { timecardId: string },\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimecardRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.GetTimecardResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.GetTimecardResponse\n> {\n const payload = { timecardId: ':timecardId' } as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.getTimecard(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: '/v1/timecards/{timecardId}',\n pathParams: { timecardId: 'timecardId' },\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 queryTimecards(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.QueryTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.QueryTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.QueryTimecardsResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.QueryTimecardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.queryTimecards(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: '/v1/timecards/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 listAggregatedTimecards(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ListAggregatedTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardTypes.ListAggregatedTimecardsRequest,\n ambassadorWixStaffTimeClockV1TimecardUniversalTypes.ListAggregatedTimecardsResponse,\n ambassadorWixStaffTimeClockV1TimecardTypes.ListAggregatedTimecardsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStaffTimeClockV1Timecard.listAggregatedTimecards(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: '/v1/timecards/list-aggregated',\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 Timecard as TimecardOriginal,\n ClockPunch as ClockPunchOriginal,\n ZonedDate as ZonedDateOriginal,\n ClockSource as ClockSourceOriginal,\n ClockSourceWithLiterals as ClockSourceWithLiteralsOriginal,\n TaskAssignment as TaskAssignmentOriginal,\n WorkedTime as WorkedTimeOriginal,\n GenerateStaffTokenRequest as GenerateStaffTokenRequestOriginal,\n GenerateStaffTokenResponse as GenerateStaffTokenResponseOriginal,\n GetTimeClockDetailsRequest as GetTimeClockDetailsRequestOriginal,\n GetTimeClockDetailsResponse as GetTimeClockDetailsResponseOriginal,\n Task as TaskOriginal,\n ClockInTimecardRequest as ClockInTimecardRequestOriginal,\n ClockInTimecardResponse as ClockInTimecardResponseOriginal,\n ClockOutTimecardRequest as ClockOutTimecardRequestOriginal,\n ClockOutTimecardResponse as ClockOutTimecardResponseOriginal,\n StartTimecardTaskRequest as StartTimecardTaskRequestOriginal,\n StartTimecardTaskResponse as StartTimecardTaskResponseOriginal,\n EndTimecardTaskRequest as EndTimecardTaskRequestOriginal,\n EndTimecardTaskResponse as EndTimecardTaskResponseOriginal,\n SendPinSetupLinkRequest as SendPinSetupLinkRequestOriginal,\n SendPinSetupLinkResponse as SendPinSetupLinkResponseOriginal,\n CompletePinSetupRequest as CompletePinSetupRequestOriginal,\n CompletePinSetupResponse as CompletePinSetupResponseOriginal,\n ValidatePinSetupLinkRequest as ValidatePinSetupLinkRequestOriginal,\n ValidatePinSetupLinkResponse as ValidatePinSetupLinkResponseOriginal,\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 CloseTimecardRequest as CloseTimecardRequestOriginal,\n CloseTimecardResponse as CloseTimecardResponseOriginal,\n GetOpenTimecardRequest as GetOpenTimecardRequestOriginal,\n GetOpenTimecardResponse as GetOpenTimecardResponseOriginal,\n CreateTimecardRequest as CreateTimecardRequestOriginal,\n CreateTimecardResponse as CreateTimecardResponseOriginal,\n UpdateTimecardRequest as UpdateTimecardRequestOriginal,\n UpdateTimecardResponse as UpdateTimecardResponseOriginal,\n DeleteTimecardRequest as DeleteTimecardRequestOriginal,\n DeleteTimecardResponse as DeleteTimecardResponseOriginal,\n GetTimecardRequest as GetTimecardRequestOriginal,\n GetTimecardResponse as GetTimecardResponseOriginal,\n QueryTimecardsRequest as QueryTimecardsRequestOriginal,\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 QueryTimecardsResponse as QueryTimecardsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n ListAggregatedTimecardsRequest as ListAggregatedTimecardsRequestOriginal,\n ListAggregatedTimecardsResponse as ListAggregatedTimecardsResponseOriginal,\n AggregatedTimecard as AggregatedTimecardOriginal,\n LocationWorkedTime as LocationWorkedTimeOriginal,\n TimecardsTotals as TimecardsTotalsOriginal,\n Empty as EmptyOriginal,\n GenerateStaffTokenApplicationErrors as GenerateStaffTokenApplicationErrorsOriginal,\n GetTimeClockDetailsApplicationErrors as GetTimeClockDetailsApplicationErrorsOriginal,\n KioskClockInTimecardApplicationErrors as KioskClockInTimecardApplicationErrorsOriginal,\n KioskClockOutTimecardApplicationErrors as KioskClockOutTimecardApplicationErrorsOriginal,\n KioskStartTimecardTaskApplicationErrors as KioskStartTimecardTaskApplicationErrorsOriginal,\n KioskEndTimecardTaskApplicationErrors as KioskEndTimecardTaskApplicationErrorsOriginal,\n} from './staff-time-clock-v1-timecard-timecards.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,IAAM,oBAAoB,C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E9D,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,oBACkC,wBAAwB,OAAO;AAEvE,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":["clockInTimecard","clockOutTimecard","createTimecard","deleteTimecard","endTimecardTask","generateStaffToken","getOpenTimecard","getTimeClockDetails","getTimecard","kioskClockInTimecard","kioskClockOutTimecard","kioskEndTimecardTask","kioskStartTimecardTask","listAggregatedTimecards","queryTimecards","startTimecardTask","updateTimecard","import_timestamp","import_rest_modules","payload","ClockSource","WebhookIdentityType","SortOrder","generateStaffToken","getTimeClockDetails","kioskClockInTimecard","kioskClockOutTimecard","kioskStartTimecardTask","kioskEndTimecardTask","clockInTimecard","clockOutTimecard","startTimecardTask","endTimecardTask","getOpenTimecard","createTimecard","updateTimecard","deleteTimecard","getTimecard","queryTimecards","listAggregatedTimecards"]}
|