@connect-plus-online/ogabai-integrations 0.0.74 → 0.0.76
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 +31 -104
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +8 -34
- package/dist/index.d.ts +8 -34
- package/dist/index.esm.js +30 -104
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
// src/types/user.ts
|
|
4
|
+
var userRoleExample = {
|
|
5
|
+
name: "Admin",
|
|
6
|
+
description: "Admin",
|
|
7
|
+
privileges: [
|
|
8
|
+
{
|
|
9
|
+
feature: "inventory_product",
|
|
10
|
+
actions: ["read", "write", "update", "delete"]
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
id: "",
|
|
14
|
+
shortname: "admin",
|
|
15
|
+
isRootAdmin: "",
|
|
16
|
+
isSuperAdmin: "",
|
|
17
|
+
createdAt: "",
|
|
18
|
+
storeId: "",
|
|
19
|
+
userRoleStatus: "active"
|
|
20
|
+
};
|
|
21
|
+
var APPLICATION_FEATURES = [
|
|
22
|
+
{ key: "inventory_product", title: "Inventory Product", description: "Inventory Product" },
|
|
23
|
+
{ key: "inventory_package", title: "Inventory Package", description: "Inventory Package" },
|
|
24
|
+
{ key: "inventory_price", title: "Inventory Price", description: "Inventory Price" },
|
|
25
|
+
{ key: "inventory_stock", title: "Inventory Stock", description: "Inventory Stock" },
|
|
26
|
+
{ key: "sale_product", title: "Sale Product", description: "Sale Product" },
|
|
27
|
+
{ key: "sale_order", title: "Sale Order", description: "Sale Order" },
|
|
28
|
+
{ key: "sale_payment", title: "Sale Payment", description: "Sale Payment" },
|
|
29
|
+
{ key: "user_userAccount", title: "User User Account", description: "User User Account" }
|
|
30
|
+
];
|
|
31
|
+
|
|
3
32
|
// src/types/subscription.ts
|
|
4
33
|
var SubscriptionPlanFeatureKeyLabels = {
|
|
5
34
|
product: "Product",
|
|
@@ -249,14 +278,6 @@ var userSchema = {
|
|
|
249
278
|
var user_schema_default = userSchema;
|
|
250
279
|
|
|
251
280
|
// src/services/user/user.entity.ts
|
|
252
|
-
var applicationFeatureQuery = [
|
|
253
|
-
"createdAt",
|
|
254
|
-
"description",
|
|
255
|
-
"id",
|
|
256
|
-
"name",
|
|
257
|
-
"shortname",
|
|
258
|
-
"applicationFeatureStatus"
|
|
259
|
-
];
|
|
260
281
|
var privilegeQuery = [
|
|
261
282
|
"actions",
|
|
262
283
|
"feature"
|
|
@@ -1842,101 +1863,6 @@ var createUserRoleService = (client) => ({
|
|
|
1842
1863
|
)
|
|
1843
1864
|
});
|
|
1844
1865
|
|
|
1845
|
-
// src/services/user/types/application-feature.type.ts
|
|
1846
|
-
var ENTITY7 = "applicationFeature";
|
|
1847
|
-
var applicationFeatureIntegration = createStandardEntityIntegration({
|
|
1848
|
-
key: ENTITY7,
|
|
1849
|
-
fields: applicationFeatureQuery
|
|
1850
|
-
});
|
|
1851
|
-
var applicationFeatureListIntegration = createListIntegration({
|
|
1852
|
-
key: "applicationFeatures",
|
|
1853
|
-
fields: applicationFeatureQuery
|
|
1854
|
-
});
|
|
1855
|
-
var applicationFeatureDeleteIntegration = createDeleteIntegration(ENTITY7);
|
|
1856
|
-
|
|
1857
|
-
// src/services/user/schemas/application-feature.schema.ts
|
|
1858
|
-
var applicationFeatureSchema = {
|
|
1859
|
-
get: {
|
|
1860
|
-
operation: "query",
|
|
1861
|
-
name: "getApplicationFeature",
|
|
1862
|
-
variables: "($applicationFeature: ApplicationFeatureInput!)",
|
|
1863
|
-
field: "(applicationFeature: $applicationFeature)"
|
|
1864
|
-
},
|
|
1865
|
-
list: {
|
|
1866
|
-
operation: "query",
|
|
1867
|
-
name: "getApplicationFeatures",
|
|
1868
|
-
variables: "($limit: Int!, $skip: Int!, $search: String, $applicationFeature: ApplicationFeatureInput, $applicationFeatureIds: [String])",
|
|
1869
|
-
field: "(limit: $limit, skip: $skip, search: $search, applicationFeature: $applicationFeature, applicationFeatureIds: $applicationFeatureIds)"
|
|
1870
|
-
},
|
|
1871
|
-
create: {
|
|
1872
|
-
operation: "mutation",
|
|
1873
|
-
name: "createApplicationFeature",
|
|
1874
|
-
variables: "($applicationFeature: ApplicationFeatureInput!)",
|
|
1875
|
-
field: "(applicationFeature: $applicationFeature)"
|
|
1876
|
-
},
|
|
1877
|
-
update: {
|
|
1878
|
-
operation: "mutation",
|
|
1879
|
-
name: "updateApplicationFeature",
|
|
1880
|
-
variables: "($applicationFeatureId: String!, $applicationFeature: ApplicationFeatureInput!)",
|
|
1881
|
-
field: "(applicationFeatureId: $applicationFeatureId, applicationFeature: $applicationFeature)"
|
|
1882
|
-
},
|
|
1883
|
-
delete: {
|
|
1884
|
-
operation: "mutation",
|
|
1885
|
-
name: "removeApplicationFeature",
|
|
1886
|
-
variables: "($applicationFeatureId: String!)",
|
|
1887
|
-
field: "(applicationFeatureId: $applicationFeatureId)"
|
|
1888
|
-
}
|
|
1889
|
-
};
|
|
1890
|
-
|
|
1891
|
-
// src/services/user/application-feature.service.ts
|
|
1892
|
-
var createApplicationFeatureService = (client) => ({
|
|
1893
|
-
createApplicationFeature: createOperationExecutor(
|
|
1894
|
-
client,
|
|
1895
|
-
"createApplicationFeature",
|
|
1896
|
-
{
|
|
1897
|
-
schema: buildSchema(applicationFeatureSchema.create),
|
|
1898
|
-
defaultRootFields: applicationFeatureIntegration.create.responseFields,
|
|
1899
|
-
defaultNestedFields: applicationFeatureIntegration.create.nestedFields
|
|
1900
|
-
}
|
|
1901
|
-
),
|
|
1902
|
-
updateApplicationFeature: createOperationExecutor(
|
|
1903
|
-
client,
|
|
1904
|
-
"updateApplicationFeature",
|
|
1905
|
-
{
|
|
1906
|
-
schema: buildSchema(applicationFeatureSchema.update),
|
|
1907
|
-
defaultRootFields: applicationFeatureIntegration.update.responseFields,
|
|
1908
|
-
defaultNestedFields: applicationFeatureIntegration.update.nestedFields
|
|
1909
|
-
}
|
|
1910
|
-
),
|
|
1911
|
-
getApplicationFeature: createOperationExecutor(
|
|
1912
|
-
client,
|
|
1913
|
-
"getApplicationFeature",
|
|
1914
|
-
{
|
|
1915
|
-
schema: buildSchema(applicationFeatureSchema.get),
|
|
1916
|
-
defaultRootFields: applicationFeatureIntegration.get.responseFields,
|
|
1917
|
-
defaultNestedFields: applicationFeatureIntegration.get.nestedFields
|
|
1918
|
-
}
|
|
1919
|
-
),
|
|
1920
|
-
removeApplicationFeature: createOperationExecutor(
|
|
1921
|
-
client,
|
|
1922
|
-
"removeApplicationFeature",
|
|
1923
|
-
{
|
|
1924
|
-
schema: buildSchema(applicationFeatureSchema.delete),
|
|
1925
|
-
defaultRootFields: applicationFeatureDeleteIntegration.responseFields,
|
|
1926
|
-
defaultNestedFields: {}
|
|
1927
|
-
}
|
|
1928
|
-
),
|
|
1929
|
-
getApplicationFeatures: createOperationExecutor(
|
|
1930
|
-
client,
|
|
1931
|
-
"getApplicationFeatures",
|
|
1932
|
-
{
|
|
1933
|
-
schema: buildSchema(applicationFeatureSchema.list),
|
|
1934
|
-
defaultRootFields: [...applicationFeatureListIntegration.responseFields],
|
|
1935
|
-
defaultNestedFields: applicationFeatureListIntegration.nestedFields
|
|
1936
|
-
}
|
|
1937
|
-
)
|
|
1938
|
-
});
|
|
1939
|
-
|
|
1940
1866
|
// src/services/inventory/types/product.type.ts
|
|
1941
1867
|
var getCustomerProductCountsByIdsResponse = [
|
|
1942
1868
|
"customersProductCounts"
|
|
@@ -3369,6 +3295,7 @@ var createTransactionService = (client) => ({
|
|
|
3369
3295
|
}
|
|
3370
3296
|
});
|
|
3371
3297
|
|
|
3298
|
+
exports.APPLICATION_FEATURES = APPLICATION_FEATURES;
|
|
3372
3299
|
exports.AuthenticationError = AuthenticationError;
|
|
3373
3300
|
exports.GraphQLClient = GraphQLClient;
|
|
3374
3301
|
exports.NetworkError = NetworkError;
|
|
@@ -3399,7 +3326,6 @@ exports.addSubscriptionResponseNestedFields = addSubscriptionResponseNestedField
|
|
|
3399
3326
|
exports.addTransactionResponse = addTransactionResponse;
|
|
3400
3327
|
exports.addTransactionResponseNestedFields = addTransactionResponseNestedFields;
|
|
3401
3328
|
exports.compose = compose;
|
|
3402
|
-
exports.createApplicationFeatureService = createApplicationFeatureService;
|
|
3403
3329
|
exports.createAuthService = createAuthService;
|
|
3404
3330
|
exports.createOrderService = createOrderService;
|
|
3405
3331
|
exports.createPackageService = createPackageService;
|
|
@@ -3525,5 +3451,6 @@ exports.updateSubscriptionResponse = updateSubscriptionResponse;
|
|
|
3525
3451
|
exports.updateSubscriptionResponseNestedFields = updateSubscriptionResponseNestedFields;
|
|
3526
3452
|
exports.updateTransactionResponse = updateTransactionResponse;
|
|
3527
3453
|
exports.updateTransactionResponseNestedFields = updateTransactionResponseNestedFields;
|
|
3454
|
+
exports.userRoleExample = userRoleExample;
|
|
3528
3455
|
//# sourceMappingURL=index.cjs.js.map
|
|
3529
3456
|
//# sourceMappingURL=index.cjs.js.map
|