@worktango/ai-assistant 1.0.144 → 1.0.145

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.
@@ -523,6 +523,12 @@ export interface Query {
523
523
  peopleNotInSet?: Maybe<Array<IdResult>>;
524
524
  /** Gets any Company by identifier (Kazoo ID or workspace). */
525
525
  company?: Maybe<Company>;
526
+ /**
527
+ * Gets any Company by an identifier that may be a legacy RR (YEI) company id.
528
+ * Behaves exactly like `company`. Exists for the YEI change-data-capture tasks, which
529
+ * only know the legacy id of the company they are importing data for.
530
+ */
531
+ legacyCompany?: Maybe<Company>;
526
532
  /** Gets a Legacy Cdc Yei Company */
527
533
  legacyYeiCompany?: Maybe<LegacyYeiCompany>;
528
534
  /** Gets Legacy Cdc Yei Companies */
@@ -644,6 +650,11 @@ export interface QueryCompanyArgs {
644
650
  }
645
651
 
646
652
 
653
+ export interface QueryLegacyCompanyArgs {
654
+ identifier?: InputMaybe<LegacyCompanyIdentifierInput>;
655
+ }
656
+
657
+
647
658
  export interface QueryLegacyYeiCompanyArgs {
648
659
  yeiCompanyId?: InputMaybe<Scalars['ID']['input']>;
649
660
  workspace?: InputMaybe<Scalars['String']['input']>;
@@ -1984,28 +1995,30 @@ export interface CompanyProfileSettingsInput {
1984
1995
  canChangePreferredName?: InputMaybe<Scalars['Boolean']['input']>;
1985
1996
  }
1986
1997
 
1998
+ /** Identifies a company without relying on legacy ids. */
1987
1999
  export type CompanyIdentifierType =
1988
2000
  /** globally unique, kazoo-generated id */
1989
2001
  | 'KAZOO_ID'
1990
- | 'LEGACY_RR_ID'
1991
2002
  | 'PULSE_COMPANY_ID'
1992
2003
  | 'WORKSPACE';
1993
2004
 
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 =
2005
+ /** Superset of CompanyIdentifierType that also accepts legacy RR (YEI) company ids. Exists only for callers that still hold a legacy id. */
2006
+ export type LegacyCompanyIdentifierType =
1996
2007
  /** globally unique, kazoo-generated id */
1997
2008
  | 'KAZOO_ID'
2009
+ | 'LEGACY_RR_ID'
1998
2010
  | 'PULSE_COMPANY_ID'
1999
2011
  | 'WORKSPACE';
2000
2012
 
2001
- /** Clean variant of CompanyIdentifierInput: does not accept legacy ids. */
2002
- export interface CompanyIdentifierInputV2 {
2003
- type: CompanyIdentifierTypeV2;
2013
+ /** Identifies a company without relying on legacy ids. */
2014
+ export interface CompanyIdentifierInput {
2015
+ type: CompanyIdentifierType;
2004
2016
  key: Scalars['String']['input'];
2005
2017
  }
2006
2018
 
2007
- export interface CompanyIdentifierInput {
2008
- type: CompanyIdentifierType;
2019
+ /** Variant of CompanyIdentifierInput that also accepts legacy RR (YEI) company ids. Exists only for callers that still hold a legacy id. */
2020
+ export interface LegacyCompanyIdentifierInput {
2021
+ type: LegacyCompanyIdentifierType;
2009
2022
  key: Scalars['String']['input'];
2010
2023
  }
2011
2024
 
package/generated/sdk.ts CHANGED
@@ -521,6 +521,12 @@ export interface Query {
521
521
  peopleNotInSet?: Maybe<Array<IdResult>>;
522
522
  /** Gets any Company by identifier (Kazoo ID or workspace). */
523
523
  company?: Maybe<Company>;
524
+ /**
525
+ * Gets any Company by an identifier that may be a legacy RR (YEI) company id.
526
+ * Behaves exactly like `company`. Exists for the YEI change-data-capture tasks, which
527
+ * only know the legacy id of the company they are importing data for.
528
+ */
529
+ legacyCompany?: Maybe<Company>;
524
530
  /** Gets a Legacy Cdc Yei Company */
525
531
  legacyYeiCompany?: Maybe<LegacyYeiCompany>;
526
532
  /** Gets Legacy Cdc Yei Companies */
@@ -642,6 +648,11 @@ export interface QueryCompanyArgs {
642
648
  }
643
649
 
644
650
 
651
+ export interface QueryLegacyCompanyArgs {
652
+ identifier?: InputMaybe<LegacyCompanyIdentifierInput>;
653
+ }
654
+
655
+
645
656
  export interface QueryLegacyYeiCompanyArgs {
646
657
  yeiCompanyId?: InputMaybe<Scalars['ID']['input']>;
647
658
  workspace?: InputMaybe<Scalars['String']['input']>;
@@ -1982,28 +1993,30 @@ export interface CompanyProfileSettingsInput {
1982
1993
  canChangePreferredName?: InputMaybe<Scalars['Boolean']['input']>;
1983
1994
  }
1984
1995
 
1996
+ /** Identifies a company without relying on legacy ids. */
1985
1997
  export type CompanyIdentifierType =
1986
1998
  /** globally unique, kazoo-generated id */
1987
1999
  | 'KAZOO_ID'
1988
- | 'LEGACY_RR_ID'
1989
2000
  | 'PULSE_COMPANY_ID'
1990
2001
  | 'WORKSPACE';
1991
2002
 
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 =
2003
+ /** Superset of CompanyIdentifierType that also accepts legacy RR (YEI) company ids. Exists only for callers that still hold a legacy id. */
2004
+ export type LegacyCompanyIdentifierType =
1994
2005
  /** globally unique, kazoo-generated id */
1995
2006
  | 'KAZOO_ID'
2007
+ | 'LEGACY_RR_ID'
1996
2008
  | 'PULSE_COMPANY_ID'
1997
2009
  | 'WORKSPACE';
1998
2010
 
1999
- /** Clean variant of CompanyIdentifierInput: does not accept legacy ids. */
2000
- export interface CompanyIdentifierInputV2 {
2001
- type: CompanyIdentifierTypeV2;
2011
+ /** Identifies a company without relying on legacy ids. */
2012
+ export interface CompanyIdentifierInput {
2013
+ type: CompanyIdentifierType;
2002
2014
  key: Scalars['String']['input'];
2003
2015
  }
2004
2016
 
2005
- export interface CompanyIdentifierInput {
2006
- type: CompanyIdentifierType;
2017
+ /** Variant of CompanyIdentifierInput that also accepts legacy RR (YEI) company ids. Exists only for callers that still hold a legacy id. */
2018
+ export interface LegacyCompanyIdentifierInput {
2019
+ type: LegacyCompanyIdentifierType;
2007
2020
  key: Scalars['String']['input'];
2008
2021
  }
2009
2022
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktango/ai-assistant",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"