@connect-plus-online/ogabai-integrations 0.0.66 → 0.0.68
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.cjs.js +118 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +77 -9
- package/dist/index.d.ts +77 -9
- package/dist/index.esm.js +115 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6,17 +6,17 @@ var SubscriptionPlanFeatureKeyLabels = {
|
|
|
6
6
|
stock: "Stock",
|
|
7
7
|
sale: "Sale",
|
|
8
8
|
store: "Store",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
report: "Report",
|
|
12
|
-
order: "Order",
|
|
13
|
-
export: "Export",
|
|
14
|
-
offline: "Offline Mode",
|
|
15
|
-
tax: "Tax Management",
|
|
16
|
-
loyalty: "Loyalty Program",
|
|
17
|
-
staff: "Staff Management",
|
|
18
|
-
scanSell: "Scan & Sell",
|
|
19
|
-
stockAlert: "Stock Alert"
|
|
9
|
+
scanAdd: "Scan & Add"
|
|
10
|
+
// expense: "Expense",
|
|
11
|
+
// report: "Report",
|
|
12
|
+
// order: "Order",
|
|
13
|
+
// export: "Export",
|
|
14
|
+
// offline: "Offline Mode",
|
|
15
|
+
// tax: "Tax Management",
|
|
16
|
+
// loyalty: "Loyalty Program",
|
|
17
|
+
// staff: "Staff Management",
|
|
18
|
+
// scanSell: "Scan & Sell",
|
|
19
|
+
// stockAlert: "Stock Alert"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// src/auth.ts
|
|
@@ -2775,6 +2775,14 @@ var createPaystackService = (client) => ({
|
|
|
2775
2775
|
});
|
|
2776
2776
|
|
|
2777
2777
|
// src/services/subscription/subscription.entity.ts
|
|
2778
|
+
var subscriptionPlanFeatureBehaviourQuery = [
|
|
2779
|
+
"id",
|
|
2780
|
+
"createdAt",
|
|
2781
|
+
"description",
|
|
2782
|
+
"shortname",
|
|
2783
|
+
"subscriptionPlanFeatureKey",
|
|
2784
|
+
"title"
|
|
2785
|
+
];
|
|
2778
2786
|
var subscriptionQuery = [
|
|
2779
2787
|
"cancelAtPeriodEnd",
|
|
2780
2788
|
"canceledAt",
|
|
@@ -2891,6 +2899,18 @@ var removeSubscriptionResponse = [
|
|
|
2891
2899
|
"subscriptionId"
|
|
2892
2900
|
];
|
|
2893
2901
|
|
|
2902
|
+
// src/services/subscription/types/subscription-plan-feature-behaviour.type.ts
|
|
2903
|
+
var ENTITY4 = "subscriptionPlanFeatureBehaviour";
|
|
2904
|
+
var subscriptionPlanFeatureBehaviourIntegration = createStandardEntityIntegration({
|
|
2905
|
+
key: ENTITY4,
|
|
2906
|
+
fields: subscriptionPlanFeatureBehaviourQuery
|
|
2907
|
+
});
|
|
2908
|
+
var subscriptionPlanFeatureBehaviourListIntegration = createListIntegration({
|
|
2909
|
+
key: "subscriptionPlanFeatureBehaviours",
|
|
2910
|
+
fields: subscriptionPlanFeatureBehaviourQuery
|
|
2911
|
+
});
|
|
2912
|
+
var subscriptionPlanFeatureBehaviourDeleteIntegration = createDeleteIntegration(ENTITY4);
|
|
2913
|
+
|
|
2894
2914
|
// src/services/subscription/schemas/subscription-plan-feature.schema.ts
|
|
2895
2915
|
var subscriptionPlanFeatureSchema = {
|
|
2896
2916
|
getSubscriptionPlanFeature: (query) => `
|
|
@@ -3227,6 +3247,89 @@ var createSubscriptionService = (client) => ({
|
|
|
3227
3247
|
}
|
|
3228
3248
|
});
|
|
3229
3249
|
|
|
3250
|
+
// src/services/subscription/schemas/subscription-plan-feature-behaviour.ts
|
|
3251
|
+
var subscriptionPlanFeatureBehaviourSchema = {
|
|
3252
|
+
get: {
|
|
3253
|
+
operation: "query",
|
|
3254
|
+
name: "getSubscriptionPlanFeatureBehaviour",
|
|
3255
|
+
variables: "($subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput!)",
|
|
3256
|
+
field: "(subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour)"
|
|
3257
|
+
},
|
|
3258
|
+
list: {
|
|
3259
|
+
operation: "query",
|
|
3260
|
+
name: "getSubscriptionPlanFeatureBehaviours",
|
|
3261
|
+
variables: "($limit: Int!, $skip: Int!, $search: String, $subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput, $subscriptionPlanFeatureBehaviourIds: [String])",
|
|
3262
|
+
field: "(limit: $limit, skip: $skip, search: $search, subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour, subscriptionPlanFeatureBehaviourIds: $subscriptionPlanFeatureBehaviourIds)"
|
|
3263
|
+
},
|
|
3264
|
+
create: {
|
|
3265
|
+
operation: "mutation",
|
|
3266
|
+
name: "createSubscriptionPlanFeatureBehaviour",
|
|
3267
|
+
variables: "($subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput!)",
|
|
3268
|
+
field: "(subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour)"
|
|
3269
|
+
},
|
|
3270
|
+
update: {
|
|
3271
|
+
operation: "mutation",
|
|
3272
|
+
name: "updateSubscriptionPlanFeatureBehaviour",
|
|
3273
|
+
variables: "($subscriptionPlanFeatureBehaviourId: String!, $subscriptionPlanFeatureBehaviour: SubscriptionPlanFeatureBehaviourInput!)",
|
|
3274
|
+
field: "(subscriptionPlanFeatureBehaviourId: $subscriptionPlanFeatureBehaviourId, subscriptionPlanFeatureBehaviour: $subscriptionPlanFeatureBehaviour)"
|
|
3275
|
+
},
|
|
3276
|
+
delete: {
|
|
3277
|
+
operation: "mutation",
|
|
3278
|
+
name: "removeSubscriptionPlanFeatureBehaviour",
|
|
3279
|
+
variables: "($subscriptionPlanFeatureBehaviourId: String!)",
|
|
3280
|
+
field: "(subscriptionPlanFeatureBehaviourId: $subscriptionPlanFeatureBehaviourId)"
|
|
3281
|
+
}
|
|
3282
|
+
};
|
|
3283
|
+
|
|
3284
|
+
// src/services/subscription/subscription-plan-feature-behaviour.service.ts
|
|
3285
|
+
var createSubscriptionPlanFeatureBehaviourService = (client) => ({
|
|
3286
|
+
createSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3287
|
+
client,
|
|
3288
|
+
"createSubscriptionPlanFeatureBehaviour",
|
|
3289
|
+
{
|
|
3290
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.create),
|
|
3291
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourIntegration.create.responseFields,
|
|
3292
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourIntegration.create.nestedFields
|
|
3293
|
+
}
|
|
3294
|
+
),
|
|
3295
|
+
updateSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3296
|
+
client,
|
|
3297
|
+
"updateSubscriptionPlanFeatureBehaviour",
|
|
3298
|
+
{
|
|
3299
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.update),
|
|
3300
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourIntegration.update.responseFields,
|
|
3301
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourIntegration.update.nestedFields
|
|
3302
|
+
}
|
|
3303
|
+
),
|
|
3304
|
+
getSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3305
|
+
client,
|
|
3306
|
+
"getSubscriptionPlanFeatureBehaviour",
|
|
3307
|
+
{
|
|
3308
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.get),
|
|
3309
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourIntegration.get.responseFields,
|
|
3310
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourIntegration.get.nestedFields
|
|
3311
|
+
}
|
|
3312
|
+
),
|
|
3313
|
+
removeSubscriptionPlanFeatureBehaviour: createOperationExecutor(
|
|
3314
|
+
client,
|
|
3315
|
+
"removeSubscriptionPlanFeatureBehaviour",
|
|
3316
|
+
{
|
|
3317
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.delete),
|
|
3318
|
+
defaultRootFields: subscriptionPlanFeatureBehaviourDeleteIntegration.responseFields,
|
|
3319
|
+
defaultNestedFields: {}
|
|
3320
|
+
}
|
|
3321
|
+
),
|
|
3322
|
+
getSubscriptionPlanFeatureBehaviours: createOperationExecutor(
|
|
3323
|
+
client,
|
|
3324
|
+
"getSubscriptionPlanFeatureBehaviours",
|
|
3325
|
+
{
|
|
3326
|
+
schema: buildSchema(subscriptionPlanFeatureBehaviourSchema.list),
|
|
3327
|
+
defaultRootFields: [...subscriptionPlanFeatureBehaviourListIntegration.responseFields],
|
|
3328
|
+
defaultNestedFields: subscriptionPlanFeatureBehaviourListIntegration.nestedFields
|
|
3329
|
+
}
|
|
3330
|
+
)
|
|
3331
|
+
});
|
|
3332
|
+
|
|
3230
3333
|
exports.AuthenticationError = AuthenticationError;
|
|
3231
3334
|
exports.GraphQLClient = GraphQLClient;
|
|
3232
3335
|
exports.NetworkError = NetworkError;
|
|
@@ -3279,6 +3382,7 @@ exports.createStoreCategoryResponseFields = createStoreCategoryResponseFields;
|
|
|
3279
3382
|
exports.createStoreCategoryResponseNestedFields = createStoreCategoryResponseNestedFields;
|
|
3280
3383
|
exports.createStoreCategoryService = createStoreCategoryService;
|
|
3281
3384
|
exports.createStoreService = createStoreService;
|
|
3385
|
+
exports.createSubscriptionPlanFeatureBehaviourService = createSubscriptionPlanFeatureBehaviourService;
|
|
3282
3386
|
exports.createSubscriptionPlanFeatureService = createSubscriptionPlanFeatureService;
|
|
3283
3387
|
exports.createSubscriptionPlanService = createSubscriptionPlanService;
|
|
3284
3388
|
exports.createSubscriptionService = createSubscriptionService;
|
|
@@ -3363,6 +3467,9 @@ exports.searchCategoriesAndTemplateResponse = searchCategoriesAndTemplateRespons
|
|
|
3363
3467
|
exports.searchCategoriesAndTemplateResponseNestedFields = searchCategoriesAndTemplateResponseNestedFields;
|
|
3364
3468
|
exports.searchProductNamesResponse = searchProductNamesResponse;
|
|
3365
3469
|
exports.searchProductNamesResponseNestedFields = searchProductNamesResponseNestedFields;
|
|
3470
|
+
exports.subscriptionPlanFeatureBehaviourDeleteIntegration = subscriptionPlanFeatureBehaviourDeleteIntegration;
|
|
3471
|
+
exports.subscriptionPlanFeatureBehaviourIntegration = subscriptionPlanFeatureBehaviourIntegration;
|
|
3472
|
+
exports.subscriptionPlanFeatureBehaviourListIntegration = subscriptionPlanFeatureBehaviourListIntegration;
|
|
3366
3473
|
exports.toAsyncHeadersFactory = toAsyncHeadersFactory;
|
|
3367
3474
|
exports.toAsyncTokenProvider = toAsyncTokenProvider;
|
|
3368
3475
|
exports.transactionQuery = transactionQuery;
|