@connect-plus-online/ogabai-integrations 0.0.104 → 0.0.105

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/dist/index.d.mts CHANGED
@@ -676,8 +676,12 @@ type PackageFields = (keyof ProductPackage)[];
676
676
  type ProductNamesFields = (keyof ProductName)[];
677
677
  type ProductFields = (keyof Product)[];
678
678
 
679
+ declare enum TEST_FEATURES {
680
+ EXPENSE_TRACKER = "expenseTracker",
681
+ PRODUCT_IMPORT = "productImport"
682
+ }
679
683
  interface GetAppTestFeatureEnabledResponse {
680
- testFeatureEnabled: string[];
684
+ testFeatureEnabled: boolean;
681
685
  }
682
686
  interface GetAppTestFeaturesResponse {
683
687
  testFeatures: string[];
@@ -770,6 +774,7 @@ interface MeResponseNestedFields extends GetUserResponseNestedFields {
770
774
  }
771
775
 
772
776
  declare const createUserService: (client: GraphQLClient) => {
777
+ featureTestPhase(featureName: TEST_FEATURES, testFeatures: string[]): Promise<boolean>;
773
778
  getTestFeatureEnabled(fetchFields?: {
774
779
  root?: (keyof GetAppTestFeatureEnabledResponse)[];
775
780
  }, option?: RequestOption): Promise<GetAppTestFeatureEnabledResponse | undefined>;
package/dist/index.d.ts CHANGED
@@ -676,8 +676,12 @@ type PackageFields = (keyof ProductPackage)[];
676
676
  type ProductNamesFields = (keyof ProductName)[];
677
677
  type ProductFields = (keyof Product)[];
678
678
 
679
+ declare enum TEST_FEATURES {
680
+ EXPENSE_TRACKER = "expenseTracker",
681
+ PRODUCT_IMPORT = "productImport"
682
+ }
679
683
  interface GetAppTestFeatureEnabledResponse {
680
- testFeatureEnabled: string[];
684
+ testFeatureEnabled: boolean;
681
685
  }
682
686
  interface GetAppTestFeaturesResponse {
683
687
  testFeatures: string[];
@@ -770,6 +774,7 @@ interface MeResponseNestedFields extends GetUserResponseNestedFields {
770
774
  }
771
775
 
772
776
  declare const createUserService: (client: GraphQLClient) => {
777
+ featureTestPhase(featureName: TEST_FEATURES, testFeatures: string[]): Promise<boolean>;
773
778
  getTestFeatureEnabled(fetchFields?: {
774
779
  root?: (keyof GetAppTestFeatureEnabledResponse)[];
775
780
  }, option?: RequestOption): Promise<GetAppTestFeatureEnabledResponse | undefined>;
package/dist/index.esm.js CHANGED
@@ -1378,6 +1378,9 @@ var meResponseNestedFields = {
1378
1378
 
1379
1379
  // src/services/user/user.service.ts
1380
1380
  var createUserService = (client) => ({
1381
+ async featureTestPhase(featureName, testFeatures) {
1382
+ return testFeatures.includes(featureName);
1383
+ },
1381
1384
  async getTestFeatureEnabled(fetchFields, option) {
1382
1385
  var _a, _b;
1383
1386
  const res = await client.request(