@worktango/ai-assistant 1.0.139 → 1.0.141
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/generated/apiHooks.tsx +85 -0
- package/generated/sdk.ts +85 -0
- package/package.json +1 -1
package/generated/apiHooks.tsx
CHANGED
|
@@ -511,6 +511,12 @@ export interface Query {
|
|
|
511
511
|
getAiResponseRating?: Maybe<AiResponseRating>;
|
|
512
512
|
/** Returns a single person */
|
|
513
513
|
person?: Maybe<Person>;
|
|
514
|
+
/**
|
|
515
|
+
* Returns a single person, looked up by an identifier that may be a legacy (YEI) id.
|
|
516
|
+
* Behaves exactly like `person`. Exists so that callers relying on legacy ids can migrate
|
|
517
|
+
* off the PersonIdentityInput type name before it becomes a clean type that rejects legacy ids.
|
|
518
|
+
*/
|
|
519
|
+
legacyPerson?: Maybe<Person>;
|
|
514
520
|
/** executes a people search */
|
|
515
521
|
people: PersonConnection;
|
|
516
522
|
/** Returns an array of ids of people who are in `status` and are NOT in the set of ids provided. This is used for bulk deactivating users. */
|
|
@@ -613,6 +619,11 @@ export interface QueryPersonArgs {
|
|
|
613
619
|
}
|
|
614
620
|
|
|
615
621
|
|
|
622
|
+
export interface QueryLegacyPersonArgs {
|
|
623
|
+
identifier: LegacyPersonIdentityInput;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
|
|
616
627
|
export interface QueryPeopleArgs {
|
|
617
628
|
filters?: InputMaybe<Array<QueryPeopleInput>>;
|
|
618
629
|
sort?: InputMaybe<Array<QueryPeopleSortInput>>;
|
|
@@ -1980,6 +1991,19 @@ export type CompanyIdentifierType =
|
|
|
1980
1991
|
| 'PULSE_COMPANY_ID'
|
|
1981
1992
|
| 'WORKSPACE';
|
|
1982
1993
|
|
|
1994
|
+
/** Clean variant of CompanyIdentifierType: no legacy ids. Not accepted anywhere yet; it will take over the CompanyIdentifierType name once legacy consumers migrate. */
|
|
1995
|
+
export type CompanyIdentifierTypeV2 =
|
|
1996
|
+
/** globally unique, kazoo-generated id */
|
|
1997
|
+
| 'KAZOO_ID'
|
|
1998
|
+
| 'PULSE_COMPANY_ID'
|
|
1999
|
+
| 'WORKSPACE';
|
|
2000
|
+
|
|
2001
|
+
/** Clean variant of CompanyIdentifierInput: does not accept legacy ids. */
|
|
2002
|
+
export interface CompanyIdentifierInputV2 {
|
|
2003
|
+
type: CompanyIdentifierTypeV2;
|
|
2004
|
+
key: Scalars['String']['input'];
|
|
2005
|
+
}
|
|
2006
|
+
|
|
1983
2007
|
export interface CompanyIdentifierInput {
|
|
1984
2008
|
type: CompanyIdentifierType;
|
|
1985
2009
|
key: Scalars['String']['input'];
|
|
@@ -4093,12 +4117,54 @@ export interface PersonIdentityInput {
|
|
|
4093
4117
|
key: Scalars['String']['input'];
|
|
4094
4118
|
}
|
|
4095
4119
|
|
|
4120
|
+
/**
|
|
4121
|
+
* Identical to PersonIdentityInput, under the name it will keep after the identifier-type cleanup.
|
|
4122
|
+
* Callers that look people up by legacy (YEI/Pulse) ids must use this type so that
|
|
4123
|
+
* PersonIdentityInput can later become a clean type that rejects legacy ids without
|
|
4124
|
+
* breaking already-shipped clients. Mobile apps hardcode this type name in shipped queries.
|
|
4125
|
+
*/
|
|
4126
|
+
export interface LegacyPersonIdentityInput {
|
|
4127
|
+
/** provider */
|
|
4128
|
+
provider: PersonIdentityProvider;
|
|
4129
|
+
/** identifier of their account */
|
|
4130
|
+
key: Scalars['String']['input'];
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4096
4133
|
/** Nullable to support delete operations. e.g.: Update my manager to null. */
|
|
4097
4134
|
export interface NullablePersonIdentityInput {
|
|
4098
4135
|
provider: PersonIdentityProvider;
|
|
4099
4136
|
key?: InputMaybe<Scalars['String']['input']>;
|
|
4100
4137
|
}
|
|
4101
4138
|
|
|
4139
|
+
/** Clean variant of PersonIdentityProvider: no legacy providers. Not accepted anywhere yet; it will take over the PersonIdentityProvider name once legacy consumers migrate. */
|
|
4140
|
+
export type PersonIdentityProviderV2 =
|
|
4141
|
+
/** Email. Only unique within a company. */
|
|
4142
|
+
| 'EMAIL'
|
|
4143
|
+
/** EmployeeID, badge number or other value that is only unique within a company. */
|
|
4144
|
+
| 'EMPLOYEE_ID'
|
|
4145
|
+
/** GRS member id */
|
|
4146
|
+
| 'GRS_MEMBER_ID'
|
|
4147
|
+
/** globally unique identifier. Kazoo-assigned. */
|
|
4148
|
+
| 'KAZOO_ID'
|
|
4149
|
+
/** Kazoo Username */
|
|
4150
|
+
| 'USERNAME'
|
|
4151
|
+
/** WorkOS user id */
|
|
4152
|
+
| 'WORKOS_USER_ID';
|
|
4153
|
+
|
|
4154
|
+
/** Used to identify a person in input operations. Clean variant of PersonIdentityInput: does not accept legacy providers. */
|
|
4155
|
+
export interface PersonIdentityInputV2 {
|
|
4156
|
+
/** provider */
|
|
4157
|
+
provider: PersonIdentityProviderV2;
|
|
4158
|
+
/** identifier of their account */
|
|
4159
|
+
key: Scalars['String']['input'];
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
/** Nullable to support delete operations. e.g.: Update my manager to null. */
|
|
4163
|
+
export interface NullablePersonIdentityInputV2 {
|
|
4164
|
+
provider: PersonIdentityProviderV2;
|
|
4165
|
+
key?: InputMaybe<Scalars['String']['input']>;
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4102
4168
|
/** Used to identify Departments, Locations, and Groups. */
|
|
4103
4169
|
export type EntityIdentifierType =
|
|
4104
4170
|
/** client-provided key */
|
|
@@ -4120,6 +4186,25 @@ export interface EntityIdentifierInput {
|
|
|
4120
4186
|
key: Scalars['String']['input'];
|
|
4121
4187
|
}
|
|
4122
4188
|
|
|
4189
|
+
/** Used to identify Departments, Locations, and Groups. Clean variant of EntityIdentifierType: no legacy ids. Not accepted anywhere yet; it will take over the EntityIdentifierType name once legacy consumers migrate. */
|
|
4190
|
+
export type EntityIdentifierTypeV2 =
|
|
4191
|
+
/** client-provided key */
|
|
4192
|
+
| 'EXTERNAL'
|
|
4193
|
+
/** globally unique, kazoo-generated id */
|
|
4194
|
+
| 'KAZOO_ID';
|
|
4195
|
+
|
|
4196
|
+
/** Identifies an entity like a Location, Group, or Department. Nullable for use in delete operations like 'set my department to null'. */
|
|
4197
|
+
export interface NullableEntityIdentifierInputV2 {
|
|
4198
|
+
type: EntityIdentifierTypeV2;
|
|
4199
|
+
key?: InputMaybe<Scalars['String']['input']>;
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
/** Identifies an entity like a Location, Group, or Department. Clean variant of EntityIdentifierInput: does not accept legacy ids. */
|
|
4203
|
+
export interface EntityIdentifierInputV2 {
|
|
4204
|
+
type: EntityIdentifierTypeV2;
|
|
4205
|
+
key: Scalars['String']['input'];
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4123
4208
|
/** creates or updates a person record, typically from HRIS import. */
|
|
4124
4209
|
export interface CreateOrUpdatePersonInput {
|
|
4125
4210
|
/**
|
package/generated/sdk.ts
CHANGED
|
@@ -509,6 +509,12 @@ export interface Query {
|
|
|
509
509
|
getAiResponseRating?: Maybe<AiResponseRating>;
|
|
510
510
|
/** Returns a single person */
|
|
511
511
|
person?: Maybe<Person>;
|
|
512
|
+
/**
|
|
513
|
+
* Returns a single person, looked up by an identifier that may be a legacy (YEI) id.
|
|
514
|
+
* Behaves exactly like `person`. Exists so that callers relying on legacy ids can migrate
|
|
515
|
+
* off the PersonIdentityInput type name before it becomes a clean type that rejects legacy ids.
|
|
516
|
+
*/
|
|
517
|
+
legacyPerson?: Maybe<Person>;
|
|
512
518
|
/** executes a people search */
|
|
513
519
|
people: PersonConnection;
|
|
514
520
|
/** Returns an array of ids of people who are in `status` and are NOT in the set of ids provided. This is used for bulk deactivating users. */
|
|
@@ -611,6 +617,11 @@ export interface QueryPersonArgs {
|
|
|
611
617
|
}
|
|
612
618
|
|
|
613
619
|
|
|
620
|
+
export interface QueryLegacyPersonArgs {
|
|
621
|
+
identifier: LegacyPersonIdentityInput;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
|
|
614
625
|
export interface QueryPeopleArgs {
|
|
615
626
|
filters?: InputMaybe<Array<QueryPeopleInput>>;
|
|
616
627
|
sort?: InputMaybe<Array<QueryPeopleSortInput>>;
|
|
@@ -1978,6 +1989,19 @@ export type CompanyIdentifierType =
|
|
|
1978
1989
|
| 'PULSE_COMPANY_ID'
|
|
1979
1990
|
| 'WORKSPACE';
|
|
1980
1991
|
|
|
1992
|
+
/** Clean variant of CompanyIdentifierType: no legacy ids. Not accepted anywhere yet; it will take over the CompanyIdentifierType name once legacy consumers migrate. */
|
|
1993
|
+
export type CompanyIdentifierTypeV2 =
|
|
1994
|
+
/** globally unique, kazoo-generated id */
|
|
1995
|
+
| 'KAZOO_ID'
|
|
1996
|
+
| 'PULSE_COMPANY_ID'
|
|
1997
|
+
| 'WORKSPACE';
|
|
1998
|
+
|
|
1999
|
+
/** Clean variant of CompanyIdentifierInput: does not accept legacy ids. */
|
|
2000
|
+
export interface CompanyIdentifierInputV2 {
|
|
2001
|
+
type: CompanyIdentifierTypeV2;
|
|
2002
|
+
key: Scalars['String']['input'];
|
|
2003
|
+
}
|
|
2004
|
+
|
|
1981
2005
|
export interface CompanyIdentifierInput {
|
|
1982
2006
|
type: CompanyIdentifierType;
|
|
1983
2007
|
key: Scalars['String']['input'];
|
|
@@ -4091,12 +4115,54 @@ export interface PersonIdentityInput {
|
|
|
4091
4115
|
key: Scalars['String']['input'];
|
|
4092
4116
|
}
|
|
4093
4117
|
|
|
4118
|
+
/**
|
|
4119
|
+
* Identical to PersonIdentityInput, under the name it will keep after the identifier-type cleanup.
|
|
4120
|
+
* Callers that look people up by legacy (YEI/Pulse) ids must use this type so that
|
|
4121
|
+
* PersonIdentityInput can later become a clean type that rejects legacy ids without
|
|
4122
|
+
* breaking already-shipped clients. Mobile apps hardcode this type name in shipped queries.
|
|
4123
|
+
*/
|
|
4124
|
+
export interface LegacyPersonIdentityInput {
|
|
4125
|
+
/** provider */
|
|
4126
|
+
provider: PersonIdentityProvider;
|
|
4127
|
+
/** identifier of their account */
|
|
4128
|
+
key: Scalars['String']['input'];
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4094
4131
|
/** Nullable to support delete operations. e.g.: Update my manager to null. */
|
|
4095
4132
|
export interface NullablePersonIdentityInput {
|
|
4096
4133
|
provider: PersonIdentityProvider;
|
|
4097
4134
|
key?: InputMaybe<Scalars['String']['input']>;
|
|
4098
4135
|
}
|
|
4099
4136
|
|
|
4137
|
+
/** Clean variant of PersonIdentityProvider: no legacy providers. Not accepted anywhere yet; it will take over the PersonIdentityProvider name once legacy consumers migrate. */
|
|
4138
|
+
export type PersonIdentityProviderV2 =
|
|
4139
|
+
/** Email. Only unique within a company. */
|
|
4140
|
+
| 'EMAIL'
|
|
4141
|
+
/** EmployeeID, badge number or other value that is only unique within a company. */
|
|
4142
|
+
| 'EMPLOYEE_ID'
|
|
4143
|
+
/** GRS member id */
|
|
4144
|
+
| 'GRS_MEMBER_ID'
|
|
4145
|
+
/** globally unique identifier. Kazoo-assigned. */
|
|
4146
|
+
| 'KAZOO_ID'
|
|
4147
|
+
/** Kazoo Username */
|
|
4148
|
+
| 'USERNAME'
|
|
4149
|
+
/** WorkOS user id */
|
|
4150
|
+
| 'WORKOS_USER_ID';
|
|
4151
|
+
|
|
4152
|
+
/** Used to identify a person in input operations. Clean variant of PersonIdentityInput: does not accept legacy providers. */
|
|
4153
|
+
export interface PersonIdentityInputV2 {
|
|
4154
|
+
/** provider */
|
|
4155
|
+
provider: PersonIdentityProviderV2;
|
|
4156
|
+
/** identifier of their account */
|
|
4157
|
+
key: Scalars['String']['input'];
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
/** Nullable to support delete operations. e.g.: Update my manager to null. */
|
|
4161
|
+
export interface NullablePersonIdentityInputV2 {
|
|
4162
|
+
provider: PersonIdentityProviderV2;
|
|
4163
|
+
key?: InputMaybe<Scalars['String']['input']>;
|
|
4164
|
+
}
|
|
4165
|
+
|
|
4100
4166
|
/** Used to identify Departments, Locations, and Groups. */
|
|
4101
4167
|
export type EntityIdentifierType =
|
|
4102
4168
|
/** client-provided key */
|
|
@@ -4118,6 +4184,25 @@ export interface EntityIdentifierInput {
|
|
|
4118
4184
|
key: Scalars['String']['input'];
|
|
4119
4185
|
}
|
|
4120
4186
|
|
|
4187
|
+
/** Used to identify Departments, Locations, and Groups. Clean variant of EntityIdentifierType: no legacy ids. Not accepted anywhere yet; it will take over the EntityIdentifierType name once legacy consumers migrate. */
|
|
4188
|
+
export type EntityIdentifierTypeV2 =
|
|
4189
|
+
/** client-provided key */
|
|
4190
|
+
| 'EXTERNAL'
|
|
4191
|
+
/** globally unique, kazoo-generated id */
|
|
4192
|
+
| 'KAZOO_ID';
|
|
4193
|
+
|
|
4194
|
+
/** Identifies an entity like a Location, Group, or Department. Nullable for use in delete operations like 'set my department to null'. */
|
|
4195
|
+
export interface NullableEntityIdentifierInputV2 {
|
|
4196
|
+
type: EntityIdentifierTypeV2;
|
|
4197
|
+
key?: InputMaybe<Scalars['String']['input']>;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
/** Identifies an entity like a Location, Group, or Department. Clean variant of EntityIdentifierInput: does not accept legacy ids. */
|
|
4201
|
+
export interface EntityIdentifierInputV2 {
|
|
4202
|
+
type: EntityIdentifierTypeV2;
|
|
4203
|
+
key: Scalars['String']['input'];
|
|
4204
|
+
}
|
|
4205
|
+
|
|
4121
4206
|
/** creates or updates a person record, typically from HRIS import. */
|
|
4122
4207
|
export interface CreateOrUpdatePersonInput {
|
|
4123
4208
|
/**
|