@pexip-engage-public/graphql 1.1.12 → 1.1.14-canary-20251008093334

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/src/graphql.ts CHANGED
@@ -23,7 +23,7 @@ export const graphql = initGraphQLTada<{
23
23
  *
24
24
  * 2022-02-03T12:24:45-08:00[America/Los_Angeles] */
25
25
  ZonedDateTime: ZonedDateTimeString;
26
- JSONObject: object;
26
+ JSONObject: Record<string, unknown>;
27
27
  };
28
28
  }>();
29
29
 
package/src/schema.ts CHANGED
@@ -1016,6 +1016,63 @@ export type CommunicationType =
1016
1016
  | 'NOTIFICATION'
1017
1017
  | 'REMINDER';
1018
1018
 
1019
+ export type Context = {
1020
+ createdAt: Scalars['ISO8601']['output'];
1021
+ expiresAt?: Maybe<Scalars['ISO8601']['output']>;
1022
+ externalId?: Maybe<Scalars['String']['output']>;
1023
+ id: Scalars['String']['output'];
1024
+ lastAccessedAt?: Maybe<Scalars['ISO8601']['output']>;
1025
+ output: ContextOutput;
1026
+ updatedAt: Scalars['ISO8601']['output'];
1027
+ };
1028
+
1029
+ export type ContextInput = {
1030
+ appointmentExternalId?: InputMaybe<Scalars['String']['input']>;
1031
+ customerExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1032
+ customerIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1033
+ customers?: InputMaybe<Array<CustomerCreateInput>>;
1034
+ employeeExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1035
+ employeeIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1036
+ end?: InputMaybe<Scalars['ISO8601']['input']>;
1037
+ leadSegmentCodes?: InputMaybe<Array<Scalars['String']['input']>>;
1038
+ leadSegmentIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1039
+ listingExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1040
+ listingIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1041
+ meetingRoomIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1042
+ meetingTypes?: InputMaybe<Array<MeetingType>>;
1043
+ metadata?: InputMaybe<Scalars['JSONObject']['input']>;
1044
+ officeExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1045
+ officeIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1046
+ secondaryCustomerExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1047
+ secondaryCustomerIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1048
+ secondaryCustomers?: InputMaybe<Array<CustomerCreateInput>>;
1049
+ secondaryEmployeeExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1050
+ secondaryEmployeeIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1051
+ start?: InputMaybe<Scalars['ISO8601']['input']>;
1052
+ subjectExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1053
+ subjectGroupExternalIds?: InputMaybe<Array<Scalars['String']['input']>>;
1054
+ subjectGroupIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1055
+ subjectIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1056
+ };
1057
+
1058
+ export type ContextOutput = {
1059
+ appointmentExternalId?: Maybe<Scalars['String']['output']>;
1060
+ customerIds: Array<Scalars['ID']['output']>;
1061
+ employeeIds: Array<Scalars['ID']['output']>;
1062
+ end?: Maybe<Scalars['ISO8601']['output']>;
1063
+ leadSegmentIds: Array<Scalars['ID']['output']>;
1064
+ listingIds: Array<Scalars['ID']['output']>;
1065
+ meetingRoomIds: Array<Scalars['ID']['output']>;
1066
+ meetingTypes: Array<MeetingType>;
1067
+ metadata?: Maybe<Scalars['JSONObject']['output']>;
1068
+ officeIds: Array<Scalars['ID']['output']>;
1069
+ secondaryCustomerIds: Array<Scalars['ID']['output']>;
1070
+ secondaryEmployeeIds: Array<Scalars['ID']['output']>;
1071
+ start?: Maybe<Scalars['ISO8601']['output']>;
1072
+ subjectGroupIds: Array<Scalars['ID']['output']>;
1073
+ subjectIds: Array<Scalars['ID']['output']>;
1074
+ };
1075
+
1019
1076
  export type Customer = {
1020
1077
  anonymizedAt?: Maybe<Scalars['ISO8601']['output']>;
1021
1078
  company?: Maybe<Scalars['String']['output']>;
@@ -1290,6 +1347,15 @@ export type DefaultTimeZoneEnterpriseSetting = {
1290
1347
  value: Scalars['String']['output'];
1291
1348
  };
1292
1349
 
1350
+ export type DefaultUnavailabilityFormIdEnterpriseSetting = {
1351
+ createdAt: Scalars['ISO8601']['output'];
1352
+ /** 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. */
1353
+ manageable: Scalars['Boolean']['output'];
1354
+ updatedAt: Scalars['ISO8601']['output'];
1355
+ /** The default form to be used when creating unavailability. */
1356
+ value?: Maybe<Scalars['ID']['output']>;
1357
+ };
1358
+
1293
1359
  export type DefinedAvailability = {
1294
1360
  employee: Employee;
1295
1361
  end: Scalars['ISO8601']['output'];
@@ -1381,6 +1447,7 @@ export type Employee = {
1381
1447
  language: Language;
1382
1448
  languageExpertise: Array<Language>;
1383
1449
  lastName: Scalars['String']['output'];
1450
+ metadata?: Maybe<Scalars['JSONObject']['output']>;
1384
1451
  officeRelations: Array<OfficeRelation>;
1385
1452
  onlinePlanning: Scalars['Boolean']['output'];
1386
1453
  phoneNumber?: Maybe<Scalars['String']['output']>;
@@ -1469,6 +1536,7 @@ export type EmployeeCreateInput = {
1469
1536
  language?: InputMaybe<Language>;
1470
1537
  languageExpertise?: InputMaybe<Array<Language>>;
1471
1538
  lastName: Scalars['String']['input'];
1539
+ metadata?: InputMaybe<Scalars['JSONObject']['input']>;
1472
1540
  officeRelations?: InputMaybe<Array<OfficeRelationCreateInput>>;
1473
1541
  onlinePlanning?: InputMaybe<Scalars['Boolean']['input']>;
1474
1542
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
@@ -1529,6 +1597,7 @@ export type EmployeePatchInput = {
1529
1597
  language?: InputMaybe<Language>;
1530
1598
  languageExpertise?: InputMaybe<Array<Language>>;
1531
1599
  lastName?: InputMaybe<Scalars['String']['input']>;
1600
+ metadata?: InputMaybe<Scalars['JSONObject']['input']>;
1532
1601
  officeRelations?: InputMaybe<Array<OfficeRelationPatchInput>>;
1533
1602
  onlinePlanning?: InputMaybe<Scalars['Boolean']['input']>;
1534
1603
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
@@ -1645,6 +1714,9 @@ export type EnterpriseSettings = {
1645
1714
  defaultTermsAndConditionsUrl: DefaultTermsAndConditionsUrlEnterpriseSetting;
1646
1715
  /** The default time zone used wherever no time zone is provided. */
1647
1716
  defaultTimeZone: DefaultTimeZoneEnterpriseSetting;
1717
+ defaultUnavailabilityForm?: Maybe<Form>;
1718
+ /** The default form to be used when creating unavailability. */
1719
+ defaultUnavailabilityFormId: DefaultUnavailabilityFormIdEnterpriseSetting;
1648
1720
  /** The email provider used to send emails. */
1649
1721
  emailProvider: EmailProviderEnterpriseSetting;
1650
1722
  /** The settings used to calculate which notifications should be sent to the employee. */
@@ -1746,6 +1818,8 @@ export type EnterpriseSettingsPatchInput = {
1746
1818
  defaultSubjectId?: InputMaybe<DefaultSubjectIdInput>;
1747
1819
  /** The default time zone used wherever no time zone is provided. */
1748
1820
  defaultTimeZone?: InputMaybe<DefaultTimeZoneInput>;
1821
+ /** The default form to be used when creating unavailability. */
1822
+ defaultUnavailabilityFormId?: InputMaybe<DefaultUnavailabilityFormIdInput>;
1749
1823
  /** The email provider used to send emails. */
1750
1824
  emailProvider?: InputMaybe<EmailProviderInput>;
1751
1825
  /** The settings used to calculate which notifications should be sent to the employee. */
@@ -2164,7 +2238,8 @@ export type FormType =
2164
2238
  | 'APPOINTMENT_COMPLETION'
2165
2239
  | 'CALLBACK_REQUEST'
2166
2240
  | 'QUALIFICATION'
2167
- | 'SUBJECT_QUESTIONNAIRE';
2241
+ | 'SUBJECT_QUESTIONNAIRE'
2242
+ | 'UNAVAILABILITY';
2168
2243
 
2169
2244
  export type Geolocation = {
2170
2245
  latitude: Scalars['Float']['output'];
@@ -3001,6 +3076,7 @@ export type Mutation = {
3001
3076
  createAvailabilityTimeRange: AvailabilityTimeRange;
3002
3077
  createCallbackRequest: CallbackRequest;
3003
3078
  createCallbackRequestConfirmedSessionEvent: Scalars['Boolean']['output'];
3079
+ createContext: Context;
3004
3080
  createCustomer: Customer;
3005
3081
  createDataSelectedSessionEvent: Scalars['Boolean']['output'];
3006
3082
  createDataShownSessionEvent: Scalars['Boolean']['output'];
@@ -3168,6 +3244,7 @@ export type Mutation = {
3168
3244
  * - The mutation returns the deleted original unavailability
3169
3245
  */
3170
3246
  revertUnavailability: Array<Unavailability>;
3247
+ scheduleAppointment: Appointment;
3171
3248
  syncFutureEventsToExternalCalendar: Scalars['Boolean']['output'];
3172
3249
  syncMeetingRooms: Scalars['Boolean']['output'];
3173
3250
  syncMicrosoftDynamicsIntegrationCustomAttributes: Scalars['Boolean']['output'];
@@ -3259,6 +3336,11 @@ export type MutationCreateCallbackRequestConfirmedSessionEventArgs = {
3259
3336
  };
3260
3337
 
3261
3338
 
3339
+ export type MutationCreateContextArgs = {
3340
+ input: ContextInput;
3341
+ };
3342
+
3343
+
3262
3344
  export type MutationCreateCustomerArgs = {
3263
3345
  customerCreateInput: CustomerCreateInput;
3264
3346
  };
@@ -4075,6 +4157,11 @@ export type MutationRevertUnavailabilityArgs = {
4075
4157
  };
4076
4158
 
4077
4159
 
4160
+ export type MutationScheduleAppointmentArgs = {
4161
+ appointmentCreateInput: AppointmentCreateInput;
4162
+ };
4163
+
4164
+
4078
4165
  export type MutationSyncFutureEventsToExternalCalendarArgs = {
4079
4166
  externalCalendarId: Scalars['ID']['input'];
4080
4167
  };
@@ -4144,6 +4231,7 @@ export type Office = {
4144
4231
  id: Scalars['ID']['output'];
4145
4232
  location: Location;
4146
4233
  meetingRooms: Array<MeetingRoom>;
4234
+ metadata?: Maybe<Scalars['JSONObject']['output']>;
4147
4235
  name?: Maybe<TranslationObject>;
4148
4236
  officeManagers: Array<Employee>;
4149
4237
  parkingInfo?: Maybe<TranslationObject>;
@@ -4195,6 +4283,7 @@ export type OfficeCreateInput = {
4195
4283
  externalId?: InputMaybe<Scalars['String']['input']>;
4196
4284
  location: LocationInput;
4197
4285
  meetingRoomIds?: InputMaybe<Array<Scalars['ID']['input']>>;
4286
+ metadata?: InputMaybe<Scalars['JSONObject']['input']>;
4198
4287
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
4199
4288
  timeZone?: InputMaybe<Scalars['String']['input']>;
4200
4289
  translations: OfficeTranslationsCreateInput;
@@ -4244,6 +4333,7 @@ export type OfficePatchInput = {
4244
4333
  externalId?: InputMaybe<Scalars['String']['input']>;
4245
4334
  location?: InputMaybe<LocationInput>;
4246
4335
  meetingRoomIds?: InputMaybe<Array<Scalars['ID']['input']>>;
4336
+ metadata?: InputMaybe<Scalars['JSONObject']['input']>;
4247
4337
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
4248
4338
  timeZone?: InputMaybe<Scalars['String']['input']>;
4249
4339
  translations?: InputMaybe<OfficeTranslationsPatchInput>;
@@ -4412,6 +4502,7 @@ export type Query = {
4412
4502
  callbackRequest: CallbackRequest;
4413
4503
  callbackRequestableOffices: Array<Office>;
4414
4504
  callbackRequests: CallbackRequestConnection;
4505
+ context: Context;
4415
4506
  customer: Customer;
4416
4507
  customers: CustomerConnection;
4417
4508
  definedAvailability: Array<DefinedAvailability>;
@@ -4504,6 +4595,7 @@ export type Query = {
4504
4595
  webhookConfigurations: Array<WebhookConfiguration>;
4505
4596
  webhookDeliveries: WebhookDeliveryConnection;
4506
4597
  webhookDelivery: WebhookDelivery;
4598
+ workLocations: Array<WorkLocationEntry>;
4507
4599
  };
4508
4600
 
4509
4601
 
@@ -4730,6 +4822,12 @@ export type QueryCallbackRequestsArgs = {
4730
4822
  };
4731
4823
 
4732
4824
 
4825
+ export type QueryContextArgs = {
4826
+ externalId?: InputMaybe<Scalars['String']['input']>;
4827
+ id?: InputMaybe<Scalars['String']['input']>;
4828
+ };
4829
+
4830
+
4733
4831
  export type QueryCustomerArgs = {
4734
4832
  id: Scalars['ID']['input'];
4735
4833
  };
@@ -5507,6 +5605,13 @@ export type QueryWebhookDeliveryArgs = {
5507
5605
  webhookId: Scalars['String']['input'];
5508
5606
  };
5509
5607
 
5608
+
5609
+ export type QueryWorkLocationsArgs = {
5610
+ employeeIds: Array<Scalars['ID']['input']>;
5611
+ from: Scalars['ISO8601']['input'];
5612
+ to: Scalars['ISO8601']['input'];
5613
+ };
5614
+
5510
5615
  export type Question = {
5511
5616
  answerOptions: Array<AnswerOption>;
5512
5617
  createdAt: Scalars['ISO8601']['output'];
@@ -5521,6 +5626,7 @@ export type Question = {
5521
5626
  id: Scalars['ID']['output'];
5522
5627
  inputType: InputType;
5523
5628
  label?: Maybe<TranslationObject>;
5629
+ name?: Maybe<Scalars['String']['output']>;
5524
5630
  order: Scalars['Int']['output'];
5525
5631
  placeholder?: Maybe<TranslationObject>;
5526
5632
  required: Scalars['Boolean']['output'];
@@ -5550,6 +5656,7 @@ export type QuestionPatchInput = {
5550
5656
  fetchConfigurationId?: InputMaybe<Scalars['ID']['input']>;
5551
5657
  hidden?: InputMaybe<Scalars['Boolean']['input']>;
5552
5658
  inputType?: InputMaybe<InputType>;
5659
+ name?: InputMaybe<Scalars['String']['input']>;
5553
5660
  order?: InputMaybe<Scalars['Int']['input']>;
5554
5661
  required?: InputMaybe<Scalars['Boolean']['input']>;
5555
5662
  targetProperty?: InputMaybe<Scalars['String']['input']>;
@@ -5565,6 +5672,7 @@ export type QuestionPutInput = {
5565
5672
  hidden?: InputMaybe<Scalars['Boolean']['input']>;
5566
5673
  id?: InputMaybe<Scalars['ID']['input']>;
5567
5674
  inputType: InputType;
5675
+ name?: InputMaybe<Scalars['String']['input']>;
5568
5676
  order?: InputMaybe<Scalars['Int']['input']>;
5569
5677
  required?: InputMaybe<Scalars['Boolean']['input']>;
5570
5678
  targetProperty?: InputMaybe<Scalars['String']['input']>;
@@ -5745,9 +5853,13 @@ export type SecondaryParticipantInput = {
5745
5853
 
5746
5854
  export type SeedInput = {
5747
5855
  /** Only the enterprises in this list will be seeded. */
5748
- enterpriseFilter?: Array<Scalars['String']['input']>;
5856
+ enterpriseFilter?: InputMaybe<Array<Scalars['String']['input']>>;
5857
+ /** Only the entities in this list will be seeded. */
5858
+ entityFilter?: InputMaybe<Array<Scalars['String']['input']>>;
5749
5859
  /** Run all enterprises in parallel? */
5750
- parallel?: Scalars['Boolean']['input'];
5860
+ parallel?: InputMaybe<Scalars['Boolean']['input']>;
5861
+ /** Target services to seed to, leave empty to seed to all services. */
5862
+ targetServices?: InputMaybe<Array<Scalars['String']['input']>>;
5751
5863
  };
5752
5864
 
5753
5865
  export type SendAppointmentEmailNotificationsEnterpriseSetting = {
@@ -6536,6 +6648,7 @@ export type TranslationObjectInput = {
6536
6648
  export type UiFeature =
6537
6649
  | 'APPOINTMENT_COMPLETION'
6538
6650
  | 'APPOINTMENT_CREATION'
6651
+ | 'APPOINTMENT_CREATION_CUSTOMER_EDIT'
6539
6652
  | 'APPOINTMENT_CREATION_MESSAGE_FOR_CUSTOMER'
6540
6653
  | 'APPOINTMENT_CROSS_OFFICE_EMPLOYEE_SELECTION_ENABLED'
6541
6654
  | 'APPOINTMENT_CUSTOMER_SELECTION'
@@ -6601,6 +6714,7 @@ export type UiFeatureTogglesEnterpriseSetting = {
6601
6714
 
6602
6715
  export type Unavailability = {
6603
6716
  allDay: Scalars['Boolean']['output'];
6717
+ answers: Array<UnavailabilityAnswer>;
6604
6718
  createdAt: Scalars['ISO8601']['output'];
6605
6719
  employee: Employee;
6606
6720
  /** End time of unavailability. */
@@ -6617,6 +6731,25 @@ export type Unavailability = {
6617
6731
  updatedAt: Scalars['ISO8601']['output'];
6618
6732
  };
6619
6733
 
6734
+ export type UnavailabilityAnswer = {
6735
+ answerType: FormType;
6736
+ createdAt: Scalars['ISO8601']['output'];
6737
+ files?: Maybe<Array<File>>;
6738
+ form: Form;
6739
+ id: Scalars['ID']['output'];
6740
+ question: Question;
6741
+ selectedAnswerOptions?: Maybe<Array<AnswerOption>>;
6742
+ updatedAt: Scalars['ISO8601']['output'];
6743
+ value?: Maybe<Scalars['String']['output']>;
6744
+ };
6745
+
6746
+ export type UnavailabilityAnswerInput = {
6747
+ fileIds?: InputMaybe<Array<Scalars['String']['input']>>;
6748
+ questionId: Scalars['ID']['input'];
6749
+ selectedAnswerOptionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
6750
+ value?: InputMaybe<Scalars['String']['input']>;
6751
+ };
6752
+
6620
6753
  export type UnavailabilityConnection = {
6621
6754
  edges: Array<UnavailabilityEdge>;
6622
6755
  pageInfo: PageInfo;
@@ -6624,6 +6757,7 @@ export type UnavailabilityConnection = {
6624
6757
  };
6625
6758
 
6626
6759
  export type UnavailabilityCreateInput = {
6760
+ answers?: InputMaybe<Array<UnavailabilityAnswerInput>>;
6627
6761
  employeeId: Scalars['ID']['input'];
6628
6762
  /** Is inclusive. */
6629
6763
  endDate: Scalars['CalendarDate']['input'];
@@ -6637,12 +6771,14 @@ export type UnavailabilityEdge = {
6637
6771
  };
6638
6772
 
6639
6773
  export type UnavailabilityEventCreateInput = {
6774
+ answers?: InputMaybe<Array<UnavailabilityAnswerInput>>;
6640
6775
  employeeId: Scalars['ID']['input'];
6641
6776
  end: Scalars['ISO8601']['input'];
6642
6777
  start: Scalars['ISO8601']['input'];
6643
6778
  };
6644
6779
 
6645
6780
  export type UnavailabilityRevertInput = {
6781
+ answers?: InputMaybe<Array<UnavailabilityAnswerInput>>;
6646
6782
  employeeId: Scalars['ID']['input'];
6647
6783
  /** Is inclusive. */
6648
6784
  endDate: Scalars['CalendarDate']['input'];
@@ -6833,6 +6969,18 @@ export type WebhookEventType =
6833
6969
  | 'callback_request_update'
6834
6970
  | 'communication_send';
6835
6971
 
6972
+ export type WorkLocation = {
6973
+ employee: Employee;
6974
+ meetingTypes: Array<MeetingType>;
6975
+ office: Office;
6976
+ };
6977
+
6978
+ export type WorkLocationEntry = {
6979
+ end: Scalars['ISO8601']['output'];
6980
+ start: Scalars['ISO8601']['output'];
6981
+ workLocations: Array<WorkLocation>;
6982
+ };
6983
+
6836
6984
  export type ActiveLanguagesInput = {
6837
6985
  manageable?: InputMaybe<Scalars['Boolean']['input']>;
6838
6986
  /** The languages supported by the enterprise. */
@@ -6983,6 +7131,12 @@ export type DefaultTimeZoneInput = {
6983
7131
  value?: InputMaybe<Scalars['String']['input']>;
6984
7132
  };
6985
7133
 
7134
+ export type DefaultUnavailabilityFormIdInput = {
7135
+ manageable?: InputMaybe<Scalars['Boolean']['input']>;
7136
+ /** The default form to be used when creating unavailability. */
7137
+ value?: InputMaybe<Scalars['ID']['input']>;
7138
+ };
7139
+
6986
7140
  export type EmailProviderInput = {
6987
7141
  manageable?: InputMaybe<Scalars['Boolean']['input']>;
6988
7142
  /** The email provider used to send emails. */