@pexip-engage-public/graphql 1.1.5-canary-20250702125321 → 1.1.5

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.
@@ -1,4 +1,4 @@
1
- import { createTypeGuard } from "@pexip-engage/utils/type-guard";
1
+ import { createTypeGuard } from "@pexip-engage-public/utils/type-guard";
2
2
  const languages = createTypeGuard({
3
3
  da: "da",
4
4
  de: "de",
@@ -1 +1 @@
1
- {"version":3,"file":"type-guards.js","sourceRoot":"","sources":["../src/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE,MAAM,SAAS,GAAG,eAAe,CAAW;IAC1C,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"type-guards.js","sourceRoot":"","sources":["../src/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAGxE,MAAM,SAAS,GAAG,eAAe,CAAW;IAC1C,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,SAAS;CACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pexip-engage-public/graphql",
3
- "version": "1.1.5-canary-20250702125321",
3
+ "version": "1.1.5",
4
4
  "homepage": "https://github.com/skedify/frontend-mono/tree/develop/packages/graphql#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/skedify/frontend-mono/issues"
@@ -38,7 +38,7 @@
38
38
  "graphql-request": "^7.2.0",
39
39
  "lz-string": "^1.5.0",
40
40
  "zod": "^3.25.67",
41
- "@pexip-engage/utils": "0.1.45"
41
+ "@pexip-engage-public/utils": "0.1.46"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@graphql-codegen/cli": "^5.0.7",
@@ -59,9 +59,9 @@
59
59
  "build": "tsc",
60
60
  "clean": "rm -rf .turbo node_modules dist tsconfig.tsbuildinfo",
61
61
  "codegen": "pnpm codegen:remote",
62
- "codegen:remote": "graphql-inspector introspect https://graph.development.pexipengage.com --write ./schema.graphql && pnpm codegen:local",
63
- "codegen:local": "gql.tada generate-output && graphql-codegen-esm",
64
62
  "codegen:diff": "graphql-inspector diff ./schema.graphql https://graph.development.pexipengage.com",
63
+ "codegen:local": "gql.tada generate-output && graphql-codegen-esm",
64
+ "codegen:remote": "graphql-inspector introspect https://graph.development.pexipengage.com --write ./schema.graphql && pnpm codegen:local",
65
65
  "lint": "cross-env TIMING=1 eslint --max-warnings=0 .",
66
66
  "lint:fix": "pnpm lint --fix"
67
67
  }
@@ -2548,6 +2548,61 @@ const introspection = {
2548
2548
  ],
2549
2549
  "isOneOf": false
2550
2550
  },
2551
+ {
2552
+ "kind": "OBJECT",
2553
+ "name": "AppointmentCrossOfficeParticipantSelectionEnabledEnterpriseSetting",
2554
+ "fields": [
2555
+ {
2556
+ "name": "createdAt",
2557
+ "type": {
2558
+ "kind": "NON_NULL",
2559
+ "ofType": {
2560
+ "kind": "SCALAR",
2561
+ "name": "ISO8601"
2562
+ }
2563
+ },
2564
+ "args": [],
2565
+ "isDeprecated": false
2566
+ },
2567
+ {
2568
+ "name": "manageable",
2569
+ "type": {
2570
+ "kind": "NON_NULL",
2571
+ "ofType": {
2572
+ "kind": "SCALAR",
2573
+ "name": "Boolean"
2574
+ }
2575
+ },
2576
+ "args": [],
2577
+ "isDeprecated": false
2578
+ },
2579
+ {
2580
+ "name": "updatedAt",
2581
+ "type": {
2582
+ "kind": "NON_NULL",
2583
+ "ofType": {
2584
+ "kind": "SCALAR",
2585
+ "name": "ISO8601"
2586
+ }
2587
+ },
2588
+ "args": [],
2589
+ "isDeprecated": false
2590
+ },
2591
+ {
2592
+ "name": "value",
2593
+ "type": {
2594
+ "kind": "NON_NULL",
2595
+ "ofType": {
2596
+ "kind": "SCALAR",
2597
+ "name": "Boolean"
2598
+ }
2599
+ },
2600
+ "args": [],
2601
+ "isDeprecated": false
2602
+ }
2603
+ ],
2604
+ "interfaces": []
2605
+ },
2551
2606
  {
2552
2607
  "kind": "OBJECT",
2553
2608
  "name": "AppointmentDefaultEstimatedDurationEnterpriseSetting",
@@ -10776,6 +10831,18 @@ const introspection = {
10776
10831
  "args": [],
10777
10832
  "isDeprecated": false
10778
10833
  },
10834
+ {
10835
+ "name": "appointmentCrossOfficeParticipantSelectionEnabled",
10836
+ "type": {
10837
+ "kind": "NON_NULL",
10838
+ "ofType": {
10839
+ "kind": "OBJECT",
10840
+ "name": "AppointmentCrossOfficeParticipantSelectionEnabledEnterpriseSetting"
10841
+ }
10842
+ },
10843
+ "args": [],
10844
+ "isDeprecated": false
10845
+ },
10779
10846
  {
10780
10847
  "name": "appointmentDefaultEstimatedDuration",
10781
10848
  "type": {
@@ -11409,6 +11476,13 @@ const introspection = {
11409
11476
  "name": "appointmentCompletionAllowedDaysBeforeStartInput"
11410
11477
  }
11411
11478
  },
11479
+ {
11480
+ "name": "appointmentCrossOfficeParticipantSelectionEnabled",
11481
+ "type": {
11482
+ "kind": "INPUT_OBJECT",
11483
+ "name": "appointmentCrossOfficeParticipantSelectionEnabledInput"
11484
+ }
11485
+ },
11412
11486
  {
11413
11487
  "name": "appointmentDefaultEstimatedDuration",
11414
11488
  "type": {
@@ -21212,29 +21286,6 @@ const introspection = {
21212
21286
  ],
21213
21287
  "isDeprecated": false
21214
21288
  },
21215
- {
21216
- "name": "createUnavailabilityEvent",
21217
- "type": {
21218
- "kind": "NON_NULL",
21219
- "ofType": {
21220
- "kind": "OBJECT",
21221
- "name": "Unavailability"
21222
- }
21223
- },
21224
- "args": [
21225
- {
21226
- "name": "input",
21227
- "type": {
21228
- "kind": "NON_NULL",
21229
- "ofType": {
21230
- "kind": "INPUT_OBJECT",
21231
- "name": "UnavailabilityEventCreateInput"
21232
- }
21233
- }
21234
- }
21235
- ],
21236
- "isDeprecated": false
21237
- },
21238
21289
  {
21239
21290
  "name": "createUploadFileLink",
21240
21291
  "type": {
@@ -21876,29 +21927,6 @@ const introspection = {
21876
21927
  ],
21877
21928
  "isDeprecated": false
21878
21929
  },
21879
- {
21880
- "name": "deleteUnavailabilityEvent",
21881
- "type": {
21882
- "kind": "NON_NULL",
21883
- "ofType": {
21884
- "kind": "OBJECT",
21885
- "name": "Unavailability"
21886
- }
21887
- },
21888
- "args": [
21889
- {
21890
- "name": "id",
21891
- "type": {
21892
- "kind": "NON_NULL",
21893
- "ofType": {
21894
- "kind": "SCALAR",
21895
- "name": "ID"
21896
- }
21897
- }
21898
- }
21899
- ],
21900
- "isDeprecated": false
21901
- },
21902
21930
  {
21903
21931
  "name": "deleteWebhookConfiguration",
21904
21932
  "type": {
@@ -40877,10 +40905,6 @@ const introspection = {
40877
40905
  "name": "APPOINTMENT_CREATION_MESSAGE_FOR_CUSTOMER",
40878
40906
  "isDeprecated": false
40879
40907
  },
40880
- {
40881
- "name": "APPOINTMENT_CROSS_OFFICE_EMPLOYEE_SELECTION_ENABLED",
40882
- "isDeprecated": false
40883
- },
40884
40908
  {
40885
40909
  "name": "APPOINTMENT_CUSTOMER_SELECTION",
40886
40910
  "isDeprecated": false
@@ -40889,10 +40913,6 @@ const introspection = {
40889
40913
  "name": "APPOINTMENT_ONLY_SCHEDULABLE_TOGGLE",
40890
40914
  "isDeprecated": false
40891
40915
  },
40892
- {
40893
- "name": "APPOINTMENT_PAST_EDITING_ENABLED",
40894
- "isDeprecated": false
40895
- },
40896
40916
  {
40897
40917
  "name": "APPOINTMENT_SCHEDULING",
40898
40918
  "isDeprecated": false
@@ -40901,10 +40921,6 @@ const introspection = {
40901
40921
  "name": "APPOINTMENT_SUBJECT_SELECTION",
40902
40922
  "isDeprecated": false
40903
40923
  },
40904
- {
40905
- "name": "CALENDAR_UNAVAILABILITY_EVENTS",
40906
- "isDeprecated": false
40907
- },
40908
40924
  {
40909
40925
  "name": "CUSTOMER_CREATION",
40910
40926
  "isDeprecated": false
@@ -41162,18 +41178,6 @@ const introspection = {
41162
41178
  "kind": "OBJECT",
41163
41179
  "name": "Unavailability",
41164
41180
  "fields": [
41165
- {
41166
- "name": "allDay",
41167
- "type": {
41168
- "kind": "NON_NULL",
41169
- "ofType": {
41170
- "kind": "SCALAR",
41171
- "name": "Boolean"
41172
- }
41173
- },
41174
- "args": [],
41175
- "isDeprecated": false
41176
- },
41177
41181
  {
41178
41182
  "name": "createdAt",
41179
41183
  "type": {
@@ -41405,43 +41409,6 @@ const introspection = {
41405
41409
  ],
41406
41410
  "interfaces": []
41407
41411
  },
41408
- {
41409
- "kind": "INPUT_OBJECT",
41410
- "name": "UnavailabilityEventCreateInput",
41411
- "inputFields": [
41412
- {
41413
- "name": "employeeId",
41414
- "type": {
41415
- "kind": "NON_NULL",
41416
- "ofType": {
41417
- "kind": "SCALAR",
41418
- "name": "ID"
41419
- }
41420
- }
41421
- },
41422
- {
41423
- "name": "end",
41424
- "type": {
41425
- "kind": "NON_NULL",
41426
- "ofType": {
41427
- "kind": "SCALAR",
41428
- "name": "ISO8601"
41429
- }
41430
- }
41431
- },
41432
- {
41433
- "name": "start",
41434
- "type": {
41435
- "kind": "NON_NULL",
41436
- "ofType": {
41437
- "kind": "SCALAR",
41438
- "name": "ISO8601"
41439
- }
41440
- }
41441
- }
41442
- ],
41443
- "isOneOf": false
41444
- },
41445
41412
  {
41446
41413
  "kind": "INPUT_OBJECT",
41447
41414
  "name": "UnavailabilityRevertInput",
@@ -42913,6 +42880,27 @@ const introspection = {
42913
42880
  ],
42914
42881
  "isOneOf": false
42915
42882
  },
42883
+ {
42884
+ "kind": "INPUT_OBJECT",
42885
+ "name": "appointmentCrossOfficeParticipantSelectionEnabledInput",
42886
+ "inputFields": [
42887
+ {
42888
+ "name": "manageable",
42889
+ "type": {
42890
+ "kind": "SCALAR",
42891
+ "name": "Boolean"
42892
+ }
42893
+ },
42894
+ {
42895
+ "name": "value",
42896
+ "type": {
42897
+ "kind": "SCALAR",
42898
+ "name": "Boolean"
42899
+ }
42900
+ }
42901
+ ],
42902
+ "isOneOf": false
42903
+ },
42916
42904
  {
42917
42905
  "kind": "INPUT_OBJECT",
42918
42906
  "name": "appointmentDefaultEstimatedDurationInput",
package/src/schema.ts CHANGED
@@ -367,6 +367,15 @@ export type AppointmentCreateInput = {
367
367
  userCommunication?: InputMaybe<AppointmentUserCommunicationInput>;
368
368
  };
369
369
 
370
+ export type AppointmentCrossOfficeParticipantSelectionEnabledEnterpriseSetting = {
371
+ createdAt: Scalars['ISO8601']['output'];
372
+ /** Indicates if the enterprise setting can be managed by an administrator of the enterprise. Non-manageable settings can only be modified by Pexip Engage Support. */
373
+ manageable: Scalars['Boolean']['output'];
374
+ updatedAt: Scalars['ISO8601']['output'];
375
+ /** Whether reassigning appointments to another office is allowed. */
376
+ value: Scalars['Boolean']['output'];
377
+ };
378
+
370
379
  export type AppointmentDefaultEstimatedDurationEnterpriseSetting = {
371
380
  createdAt: Scalars['ISO8601']['output'];
372
381
  /** Indicates if the enterprise setting can be managed by an administrator of the enterprise. Non-manageable settings can only be modified by Pexip Engage Support. */
@@ -1576,6 +1585,8 @@ export type EnterpriseSettings = {
1576
1585
  appointmentAutoAccept: AppointmentAutoAcceptEnterpriseSetting;
1577
1586
  /** The number of days before its start from when an appointment can be completed. */
1578
1587
  appointmentCompletionAllowedDaysBeforeStart: AppointmentCompletionAllowedDaysBeforeStartEnterpriseSetting;
1588
+ /** Whether reassigning appointments to another office is allowed. */
1589
+ appointmentCrossOfficeParticipantSelectionEnabled: AppointmentCrossOfficeParticipantSelectionEnabledEnterpriseSetting;
1579
1590
  /** The default appointment duration. */
1580
1591
  appointmentDefaultEstimatedDuration: AppointmentDefaultEstimatedDurationEnterpriseSetting;
1581
1592
  /** The earliest possible time from now an appointment can be booked. */
@@ -1689,6 +1700,8 @@ export type EnterpriseSettingsPatchInput = {
1689
1700
  appointmentAutoAccept?: InputMaybe<AppointmentAutoAcceptInput>;
1690
1701
  /** The number of days before its start from when an appointment can be completed. */
1691
1702
  appointmentCompletionAllowedDaysBeforeStart?: InputMaybe<AppointmentCompletionAllowedDaysBeforeStartInput>;
1703
+ /** Whether reassigning appointments to another office is allowed. */
1704
+ appointmentCrossOfficeParticipantSelectionEnabled?: InputMaybe<AppointmentCrossOfficeParticipantSelectionEnabledInput>;
1692
1705
  /** The default appointment duration. */
1693
1706
  appointmentDefaultEstimatedDuration?: InputMaybe<AppointmentDefaultEstimatedDurationInput>;
1694
1707
  /** The earliest possible time from now an appointment can be booked. */
@@ -3015,7 +3028,6 @@ export type Mutation = {
3015
3028
  * that user will be reverted (as if you called revertUnavailability first, see its description).
3016
3029
  */
3017
3030
  createUnavailability: Unavailability;
3018
- createUnavailabilityEvent: Unavailability;
3019
3031
  createUploadFileLink: FileCreateUploadLinkResult;
3020
3032
  createVPaaSMeeting: PexipVPaaSParticipant;
3021
3033
  createWebhookConfiguration: WebhookConfiguration;
@@ -3043,7 +3055,6 @@ export type Mutation = {
3043
3055
  deleteSubject: Subject;
3044
3056
  deleteSubjectGroup: SubjectGroup;
3045
3057
  deleteUnavailability: Unavailability;
3046
- deleteUnavailabilityEvent: Unavailability;
3047
3058
  deleteWebhookConfiguration: WebhookConfiguration;
3048
3059
  deleteWebhookConfigurationHeaders: Array<WebhookConfigurationHeader>;
3049
3060
  disconnectExternalCalendarAccount: ExternalCalendarAccount;
@@ -3400,11 +3411,6 @@ export type MutationCreateUnavailabilityArgs = {
3400
3411
  };
3401
3412
 
3402
3413
 
3403
- export type MutationCreateUnavailabilityEventArgs = {
3404
- input: UnavailabilityEventCreateInput;
3405
- };
3406
-
3407
-
3408
3414
  export type MutationCreateUploadFileLinkArgs = {
3409
3415
  input: FileCreateUploadLinkInput;
3410
3416
  };
@@ -3533,11 +3539,6 @@ export type MutationDeleteUnavailabilityArgs = {
3533
3539
  };
3534
3540
 
3535
3541
 
3536
- export type MutationDeleteUnavailabilityEventArgs = {
3537
- id: Scalars['ID']['input'];
3538
- };
3539
-
3540
-
3541
3542
  export type MutationDeleteWebhookConfigurationArgs = {
3542
3543
  id: Scalars['ID']['input'];
3543
3544
  };
@@ -6511,13 +6512,10 @@ export type UiFeature =
6511
6512
  | 'APPOINTMENT_COMPLETION'
6512
6513
  | 'APPOINTMENT_CREATION'
6513
6514
  | 'APPOINTMENT_CREATION_MESSAGE_FOR_CUSTOMER'
6514
- | 'APPOINTMENT_CROSS_OFFICE_EMPLOYEE_SELECTION_ENABLED'
6515
6515
  | 'APPOINTMENT_CUSTOMER_SELECTION'
6516
6516
  | 'APPOINTMENT_ONLY_SCHEDULABLE_TOGGLE'
6517
- | 'APPOINTMENT_PAST_EDITING_ENABLED'
6518
6517
  | 'APPOINTMENT_SCHEDULING'
6519
6518
  | 'APPOINTMENT_SUBJECT_SELECTION'
6520
- | 'CALENDAR_UNAVAILABILITY_EVENTS'
6521
6519
  | 'CUSTOMER_CREATION'
6522
6520
  | 'CUSTOMER_DETAILS'
6523
6521
  | 'CUSTOMER_OVERVIEW'
@@ -6572,7 +6570,6 @@ export type UiFeatureTogglesEnterpriseSetting = {
6572
6570
  };
6573
6571
 
6574
6572
  export type Unavailability = {
6575
- allDay: Scalars['Boolean']['output'];
6576
6573
  createdAt: Scalars['ISO8601']['output'];
6577
6574
  employee: Employee;
6578
6575
  /** End time of unavailability. */
@@ -6608,12 +6605,6 @@ export type UnavailabilityEdge = {
6608
6605
  node: Unavailability;
6609
6606
  };
6610
6607
 
6611
- export type UnavailabilityEventCreateInput = {
6612
- employeeId: Scalars['ID']['input'];
6613
- end: Scalars['ISO8601']['input'];
6614
- start: Scalars['ISO8601']['input'];
6615
- };
6616
-
6617
6608
  export type UnavailabilityRevertInput = {
6618
6609
  employeeId: Scalars['ID']['input'];
6619
6610
  /** Is inclusive. */
@@ -6853,6 +6844,12 @@ export type AppointmentCompletionAllowedDaysBeforeStartInput = {
6853
6844
  value?: InputMaybe<Scalars['Int']['input']>;
6854
6845
  };
6855
6846
 
6847
+ export type AppointmentCrossOfficeParticipantSelectionEnabledInput = {
6848
+ manageable?: InputMaybe<Scalars['Boolean']['input']>;
6849
+ /** Whether reassigning appointments to another office is allowed. */
6850
+ value?: InputMaybe<Scalars['Boolean']['input']>;
6851
+ };
6852
+
6856
6853
  export type AppointmentDefaultEstimatedDurationInput = {
6857
6854
  manageable?: InputMaybe<Scalars['Boolean']['input']>;
6858
6855
  /** The default appointment duration. */
@@ -1,4 +1,4 @@
1
- import { createTypeGuard } from "@pexip-engage/utils/type-guard";
1
+ import { createTypeGuard } from "@pexip-engage-public/utils/type-guard";
2
2
  import type { Language } from "./schema.js";
3
3
 
4
4
  const languages = createTypeGuard<Language>({