@ikas/api-client 1.0.1-alpha.1 → 1.0.2-alpha.0
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/api/admin/query-gql.js +1 -1
- package/dist/api/admin/query-gql.js.map +1 -1
- package/dist/api/admin/rest.d.ts +17 -5
- package/dist/api/admin/rest.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/helpers/webhook-helpers.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var common_gql_1 = require("./common-gql");
|
|
|
10
10
|
exports.DefaultQueries = {
|
|
11
11
|
getAuthorizedApp: (0, graphql_request_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query GetAuthorizedApp {\n getAuthorizedApp {\n id\n storeAppId\n scope\n addedDate\n partnerId\n salesChannelId\n }\n }\n "], ["\n query GetAuthorizedApp {\n getAuthorizedApp {\n id\n storeAppId\n scope\n addedDate\n partnerId\n salesChannelId\n }\n }\n "]))),
|
|
12
12
|
getMerchantLicence: (0, graphql_request_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query GetMerchantLicence {\n getMerchantLicence {\n activeSubscriptionCode\n activeSubscriptionId\n appSubscriptions {\n addedDate\n appPaymentKey\n authorizedAppId\n createdAt\n currency\n deleted\n id\n lastPaymentDate\n lastPaymentPeriod\n lastPaymentPrice\n lastPaymentPriceWithTax\n merchantAppPaymentId\n name\n status\n storeAppId\n updatedAt\n }\n createdAt\n deleted\n fromDate\n id\n licenceActivationDate\n limits {\n code\n value\n }\n period\n region\n status\n statusUpdatedAt\n subscriptions {\n code\n createdAt\n currency\n deleted\n id\n lastPaymentDate\n lastPaymentPeriod\n lastPaymentPrice\n lastPaymentPriceWithTax\n status\n subscriptionId\n updatedAt\n }\n toDate\n updatedAt\n }\n }\n "], ["\n query GetMerchantLicence {\n getMerchantLicence {\n activeSubscriptionCode\n activeSubscriptionId\n appSubscriptions {\n addedDate\n appPaymentKey\n authorizedAppId\n createdAt\n currency\n deleted\n id\n lastPaymentDate\n lastPaymentPeriod\n lastPaymentPrice\n lastPaymentPriceWithTax\n merchantAppPaymentId\n name\n status\n storeAppId\n updatedAt\n }\n createdAt\n deleted\n fromDate\n id\n licenceActivationDate\n limits {\n code\n value\n }\n period\n region\n status\n statusUpdatedAt\n subscriptions {\n code\n createdAt\n currency\n deleted\n id\n lastPaymentDate\n lastPaymentPeriod\n lastPaymentPrice\n lastPaymentPriceWithTax\n status\n subscriptionId\n updatedAt\n }\n toDate\n updatedAt\n }\n }\n "]))),
|
|
13
|
-
getMerchant: (0, graphql_request_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query GetMerchant {\n getMerchant {\n
|
|
13
|
+
getMerchant: (0, graphql_request_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query GetMerchant {\n getMerchant {\n address {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n lastName\n postalCode\n state {\n code\n id\n name\n }\n taxOffice\n title\n type\n vkn\n }\n email\n firstName\n id\n lastName\n merchantName\n merchantSequence\n phoneNumber\n storeName\n }\n }\n "], ["\n query GetMerchant {\n getMerchant {\n address {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n lastName\n postalCode\n state {\n code\n id\n name\n }\n taxOffice\n title\n type\n vkn\n }\n email\n firstName\n id\n lastName\n merchantName\n merchantSequence\n phoneNumber\n storeName\n }\n }\n "]))),
|
|
14
14
|
getSalesChannel: (0, graphql_request_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query GetSalesChannel {\n getSalesChannel {\n id\n createdAt\n updatedAt\n deleted\n name\n paymentGateways {\n id\n order\n }\n priceListId\n stockLocations {\n id\n order\n }\n type\n }\n }\n "], ["\n query GetSalesChannel {\n getSalesChannel {\n id\n createdAt\n updatedAt\n deleted\n name\n paymentGateways {\n id\n order\n }\n priceListId\n stockLocations {\n id\n order\n }\n type\n }\n }\n "]))),
|
|
15
15
|
listCategory: (0, graphql_request_1.gql)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query ListCategories(\n $categoryPath: CategoryPathFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $search: String\n $updatedAt: DateFilterInput\n ) {\n listCategory(categoryPath: $categoryPath, id: $id, includeDeleted: $includeDeleted, name: $name, search: $search, updatedAt: $updatedAt) ", "\n } \n "], ["\n query ListCategories(\n $categoryPath: CategoryPathFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $search: String\n $updatedAt: DateFilterInput\n ) {\n listCategory(categoryPath: $categoryPath, id: $id, includeDeleted: $includeDeleted, name: $name, search: $search, updatedAt: $updatedAt) ", "\n } \n "])), common_gql_1.CATEGORY_GQL),
|
|
16
16
|
listCustomer: (0, graphql_request_1.gql)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query ListCustomer($pagination: PaginationInput, $id: StringFilterInput, $sort: String) {\n listCustomer(pagination: $pagination, id: $id, sort: $sort) {\n data ", "\n count\n hasNext\n limit\n page\n }\n }\n "], ["\n query ListCustomer($pagination: PaginationInput, $id: StringFilterInput, $sort: String) {\n listCustomer(pagination: $pagination, id: $id, sort: $sort) {\n data ", "\n count\n hasNext\n limit\n page\n }\n }\n "])), common_gql_1.CUSTOMER_GQL),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-gql.js","sourceRoot":"","sources":["../../../src/api/admin/query-gql.ts"],"names":[],"mappings":";;;;;;;AACA,mDAAsC;AACtC,2CAAkF;AAMrE,QAAA,cAAc,GAAY;IACrC,gBAAgB,MAAE,qBAAG,+PAAA,2LAWpB,IAAA;IACD,kBAAkB,MAAE,qBAAG,mrCAAA,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BAAG,8OAAA,wKAWf,IAAA;IAED,cAAc,MAAE,qBAAG,mQAAA,6LAUlB,IAAA;IAED,QAAQ,MAAE,qBAAG,gcAAA,0XAcZ,IAAA;IAED,WAAW,MAAE,qBAAG,ojBAAA,8eAsBf,IAAA;IAED,YAAY,MAAE,qBAAG,yhBAAA,mdAoBhB,IAAA;IAED,SAAS,MAAE,qBAAG,8UAAA,wQAUb,IAAA;IAED,QAAQ,MAAE,qBAAG,4UAAA,sQAUZ,IAAA;CACF,CAAC"}
|
package/dist/api/admin/rest.d.ts
CHANGED
|
@@ -5,11 +5,23 @@ declare type CommonOptions = {
|
|
|
5
5
|
[p: string]: string;
|
|
6
6
|
};
|
|
7
7
|
export declare type UploadImageRequest = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
productImage?: {
|
|
9
|
+
variantIds: string[];
|
|
10
|
+
order: number;
|
|
11
|
+
isMain?: boolean;
|
|
12
|
+
base64?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
};
|
|
15
|
+
categoryImage?: {
|
|
16
|
+
categoryIds: string[];
|
|
17
|
+
base64?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
};
|
|
20
|
+
brandImage?: {
|
|
21
|
+
brandIds: string[];
|
|
22
|
+
base64?: string;
|
|
23
|
+
url?: string;
|
|
24
|
+
};
|
|
13
25
|
};
|
|
14
26
|
export declare class AdminRestAPI {
|
|
15
27
|
axios: AxiosInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../src/api/admin/rest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA4D;AAE5D,yCAA6C;
|
|
1
|
+
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../../src/api/admin/rest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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4BC;AA5BY,oCAAY"}
|
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -12,4 +12,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./admin"), exports);
|
|
14
14
|
__exportStar(require("./oauth"), exports);
|
|
15
|
+
__exportStar(require("./base"), exports);
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/dist/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-helpers.js","sourceRoot":"","sources":["../../src/helpers/webhook-helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAA4B;AAErB,IAAM,6BAA6B,GAAG,UAAC,YAAoB,IAAK,OAAA,UAAO,GAAQ,EAAE,GAAQ,EAAE,IAAe;;;;;gBACzG,IAAI,GAAgB,GAAG,CAAC,IAAI,CAAC;qBAE/B,4BAA4B,CAAC,IAAI,EAAE,YAAY,CAAC,EAAhD,wBAAgD;gBAClD,qBAAM,IAAI,EAAE,EAAA;;gBAAZ,SAAY,CAAC;;;gBAEb,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"webhook-helpers.js","sourceRoot":"","sources":["../../src/helpers/webhook-helpers.ts"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