@ikas/api-client 1.0.2-alpha.6 → 1.0.4-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/admin-client.d.ts +3 -3
- package/dist/api/admin/admin-client.js +2 -2
- package/dist/api/admin/admin-client.js.map +1 -1
- package/dist/api/admin/generated/default-gqls.d.ts +66 -0
- package/dist/api/admin/generated/default-gqls.js +70 -0
- package/dist/api/admin/generated/default-gqls.js.map +1 -0
- package/dist/api/admin/generated/index.d.ts +57 -3
- package/dist/api/admin/generated/index.js.map +1 -1
- package/dist/api/admin/{mutation.d.ts → generated/mutation.d.ts} +4 -3
- package/dist/api/admin/{mutation.js → generated/mutation.js} +7 -0
- package/dist/api/admin/generated/mutation.js.map +1 -0
- package/dist/api/admin/generated/query.d.ts +42 -0
- package/dist/api/admin/{query.js → generated/query.js} +70 -18
- package/dist/api/admin/generated/query.js.map +1 -0
- package/dist/api/admin/index.d.ts +0 -2
- package/dist/api/admin/index.js +0 -2
- package/dist/api/admin/index.js.map +1 -1
- package/dist/api/base.d.ts +9 -4
- package/dist/api/base.js +4 -3
- package/dist/api/base.js.map +1 -1
- package/dist/api/oauth/models.d.ts +12 -0
- package/dist/helpers/auth-helpers.d.ts +2 -0
- package/dist/helpers/auth-helpers.js +20 -0
- package/dist/helpers/auth-helpers.js.map +1 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/api/admin/mutation-gql.d.ts +0 -6
- package/dist/api/admin/mutation-gql.js +0 -40
- package/dist/api/admin/mutation-gql.js.map +0 -1
- package/dist/api/admin/mutation.js.map +0 -1
- package/dist/api/admin/query-gql.d.ts +0 -6
- package/dist/api/admin/query-gql.js +0 -40
- package/dist/api/admin/query-gql.js.map +0 -1
- package/dist/api/admin/query.d.ts +0 -39
- package/dist/api/admin/query.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseGraphQLAPIClient, BaseGraphQLAPIClientOptions } from '../base';
|
|
2
|
-
import { AdminQuery } from './query';
|
|
3
|
-
import { AdminMutation } from './mutation';
|
|
4
|
-
import { AdminRestAPI } from
|
|
2
|
+
import { AdminQuery } from './generated/query';
|
|
3
|
+
import { AdminMutation } from './generated/mutation';
|
|
4
|
+
import { AdminRestAPI } from './rest';
|
|
5
5
|
export declare class ikasAdminGraphQLAPIClient<TokenData> extends BaseGraphQLAPIClient<TokenData> {
|
|
6
6
|
queries: AdminQuery;
|
|
7
7
|
mutations: AdminMutation;
|
|
@@ -17,8 +17,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.ikasAdminGraphQLAPIClient = void 0;
|
|
19
19
|
var base_1 = require("../base");
|
|
20
|
-
var query_1 = require("./query");
|
|
21
|
-
var mutation_1 = require("./mutation");
|
|
20
|
+
var query_1 = require("./generated/query");
|
|
21
|
+
var mutation_1 = require("./generated/mutation");
|
|
22
22
|
var rest_1 = require("./rest");
|
|
23
23
|
var ikasAdminGraphQLAPIClient = /** @class */ (function (_super) {
|
|
24
24
|
__extends(ikasAdminGraphQLAPIClient, _super);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-client.js","sourceRoot":"","sources":["../../../src/api/admin/admin-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gCAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"admin-client.js","sourceRoot":"","sources":["../../../src/api/admin/admin-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gCAA4E;AAC5E,2CAA+C;AAC/C,iDAAqD;AACrD,+BAAsC;AAEtC;IAA0D,6CAA+B;IAKvF,mCAAY,OAA+C;QAA3D,YACE,kBAAM,OAAO,CAAC,SAKf;QAHC,KAAI,CAAC,OAAO,GAAG,IAAI,kBAAU,CAAC,KAAI,CAAC,CAAC;QACpC,KAAI,CAAC,SAAS,GAAG,IAAI,wBAAa,CAAC,KAAI,CAAC,CAAC;QACzC,KAAI,CAAC,IAAI,GAAG,IAAI,mBAAY,CAAC,KAAI,CAAC,CAAC;;IACrC,CAAC;IACH,gCAAC;AAAD,CAAC,AAZD,CAA0D,2BAAoB,GAY7E;AAZY,8DAAyB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const QueryDefaultGQLs: {
|
|
2
|
+
getAuthorizedApp: string;
|
|
3
|
+
getImageUploadUrl: string;
|
|
4
|
+
getMerchant: string;
|
|
5
|
+
getMerchantLicence: string;
|
|
6
|
+
getSalesChannel: string;
|
|
7
|
+
getVideoUploadUrl: string;
|
|
8
|
+
listCategory: string;
|
|
9
|
+
listCity: string;
|
|
10
|
+
listCountry: string;
|
|
11
|
+
listCustomer: string;
|
|
12
|
+
listDistrict: string;
|
|
13
|
+
listLanguage: string;
|
|
14
|
+
listMerchantAppPayment: string;
|
|
15
|
+
listOrder: string;
|
|
16
|
+
listPriceList: string;
|
|
17
|
+
listProduct: string;
|
|
18
|
+
listProductAttribute: string;
|
|
19
|
+
listProductBrand: string;
|
|
20
|
+
listProductOptionSet: string;
|
|
21
|
+
listProductStockLocation: string;
|
|
22
|
+
listProductTag: string;
|
|
23
|
+
listSalesChannel: string;
|
|
24
|
+
listState: string;
|
|
25
|
+
listStockLocation: string;
|
|
26
|
+
listStorefront: string;
|
|
27
|
+
listStorefrontJSScript: string;
|
|
28
|
+
listTown: string;
|
|
29
|
+
listVariantType: string;
|
|
30
|
+
listWebhook: string;
|
|
31
|
+
me: string;
|
|
32
|
+
searchProducts: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const MutationDefaultGQLs: {
|
|
35
|
+
addCustomTimelineEntry: string;
|
|
36
|
+
addOrderInvoice: string;
|
|
37
|
+
bulkUpdateProducts: string;
|
|
38
|
+
cancelFulfillment: string;
|
|
39
|
+
createMerchantAppPayment: string;
|
|
40
|
+
createOrderWithTransactions: string;
|
|
41
|
+
deleteCategoryList: string;
|
|
42
|
+
deleteProductAttributeList: string;
|
|
43
|
+
deleteProductBrandList: string;
|
|
44
|
+
deleteProductList: string;
|
|
45
|
+
deleteProductTagList: string;
|
|
46
|
+
deleteStorefrontJSScript: string;
|
|
47
|
+
deleteVariantTypeList: string;
|
|
48
|
+
deleteWebhook: string;
|
|
49
|
+
fulfillOrder: string;
|
|
50
|
+
refundOrderLine: string;
|
|
51
|
+
saveCategory: string;
|
|
52
|
+
saveProduct: string;
|
|
53
|
+
saveProductAttribute: string;
|
|
54
|
+
saveProductBrand: string;
|
|
55
|
+
saveProductStockLocations: string;
|
|
56
|
+
saveProductTag: string;
|
|
57
|
+
saveSalesChannel: string;
|
|
58
|
+
saveStorefrontJSScript: string;
|
|
59
|
+
saveVariantPrices: string;
|
|
60
|
+
saveVariantType: string;
|
|
61
|
+
saveWebhook: string;
|
|
62
|
+
updateOrderAddresses: string;
|
|
63
|
+
updateOrderLine: string;
|
|
64
|
+
updateOrderPackageStatus: string;
|
|
65
|
+
updateProductSalesChannelStatus: string;
|
|
66
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MutationDefaultGQLs = exports.QueryDefaultGQLs = void 0;
|
|
4
|
+
exports.QueryDefaultGQLs = {
|
|
5
|
+
"getAuthorizedApp": "query getAuthorizedApp{ getAuthorizedApp { addedDate createdAt deleted id partnerId salesChannelId scope storeAppId supportsMultipleInstallation updatedAt } }",
|
|
6
|
+
"getImageUploadUrl": "query getImageUploadUrl($imageDir: String, $imageId: String!){ getImageUploadUrl(imageDir: $imageDir, imageId: $imageId) }",
|
|
7
|
+
"getMerchant": "query getMerchant{ getMerchant { address { addressLine1 addressLine2 city { code id name } country { code id name } district { code id name } firstName identityNumber lastName postalCode state { code id name } taxOffice title type vkn } email firstName id lastName merchantName merchantSequence phoneNumber storeName } }",
|
|
8
|
+
"getMerchantLicence": "query getMerchantLicence{ getMerchantLicence { activeSubscriptionCode activeSubscriptionId appSubscriptions { addedDate appPaymentKey authorizedAppId createdAt currency deleted id lastPaymentDate lastPaymentDiscountRatio lastPaymentPeriod lastPaymentPeriodInDays lastPaymentPrice lastPaymentPriceWithTax merchantAppPaymentId name status storeAppId updatedAt } createdAt customSubscriptionIds deleted fromDate id licenceActivationDate limits { code value } period region status statusUpdatedAt subscriptions { code createdAt currency deleted id lastPaymentDate lastPaymentDiscountRatio lastPaymentPeriod lastPaymentPeriodInDays lastPaymentPrice lastPaymentPriceWithTax limits { code value } name salesChannelId status subscriptionId updatedAt } toDate updatedAt } }",
|
|
9
|
+
"getSalesChannel": "query getSalesChannel{ getSalesChannel { createdAt deleted id name paymentGateways { id order } priceListId stockLocations { id order } type updatedAt } }",
|
|
10
|
+
"getVideoUploadUrl": "query getVideoUploadUrl($videoId: String!){ getVideoUploadUrl(videoId: $videoId) { fields url } }",
|
|
11
|
+
"listCategory": "query listCategory($categoryPath: CategoryPathFilterInput, $id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $search: String, $updatedAt: DateFilterInput){ listCategory(categoryPath: $categoryPath, id: $id, includeDeleted: $includeDeleted, name: $name, search: $search, updatedAt: $updatedAt) { categoryPath conditions { conditionType valueList } createdAt deleted description id imageId isAutomated metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType parentId salesChannelIds shouldMatchAllConditions translations { description locale name } updatedAt } }",
|
|
12
|
+
"listCity": "query listCity($countryId: StringFilterInput, $id: StringFilterInput, $includeDeleted: Boolean, $search: String, $stateId: StringFilterInput!, $updatedAt: DateFilterInput){ listCity(countryId: $countryId, id: $id, includeDeleted: $includeDeleted, search: $search, stateId: $stateId, updatedAt: $updatedAt) { cityCode countryId createdAt deleted id latitude longitude name order stateId updatedAt } }",
|
|
13
|
+
"listCountry": "query listCountry($id: StringFilterInput, $includeDeleted: Boolean, $iso2: StringFilterInput, $iso3: StringFilterInput, $search: String, $updatedAt: DateFilterInput){ listCountry(id: $id, includeDeleted: $includeDeleted, iso2: $iso2, iso3: $iso3, search: $search, updatedAt: $updatedAt) { capital createdAt currency deleted emoji emojiString id iso2 iso3 locationTranslations { en tr } name native phoneCode region subregion updatedAt } }",
|
|
14
|
+
"listCustomer": "query listCustomer($email: StringFilterInput, $id: StringFilterInput, $includeDeleted: Boolean, $merchantId: StringFilterInput, $pagination: PaginationInput, $phone: StringFilterInput, $search: String, $sort: String, $updatedAt: DateFilterInput){ listCustomer(email: $email, id: $id, includeDeleted: $includeDeleted, merchantId: $merchantId, pagination: $pagination, phone: $phone, search: $search, sort: $sort, updatedAt: $updatedAt) { count data { accountStatus accountStatusUpdatedAt addresses { addressLine1 addressLine2 attributes { customerAttributeId customerAttributeOptionId value } city { code id name } company country { code id iso2 iso3 name } createdAt deleted district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice title updatedAt } attributes { customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } hasNext limit page } }",
|
|
15
|
+
"listDistrict": "query listDistrict($cityId: StringFilterInput!, $countryId: StringFilterInput, $id: StringFilterInput, $includeDeleted: Boolean, $search: String, $stateId: StringFilterInput, $updatedAt: DateFilterInput){ listDistrict(cityId: $cityId, countryId: $countryId, id: $id, includeDeleted: $includeDeleted, search: $search, stateId: $stateId, updatedAt: $updatedAt) { cityId countryId createdAt deleted id latitude longitude name order stateId updatedAt } }",
|
|
16
|
+
"listLanguage": "query listLanguage($id: StringFilterInput){ listLanguage(id: $id) { createdAt deleted id locale name updatedAt } }",
|
|
17
|
+
"listMerchantAppPayment": "query listMerchantAppPayment($id: StringFilterInput, $pagination: PaginationInput){ listMerchantAppPayment(id: $id, pagination: $pagination) { count data { appPaymentKey authorizedAppId createdAt deleted id merchantPaymentUrl name paymentDate prices { period price } status storeAppId type updatedAt } hasNext limit page } }",
|
|
18
|
+
"listOrder": "query listOrder($closedAt: DateFilterInput, $id: StringFilterInput, $includeDeleted: Boolean, $orderNumber: StringFilterInput, $orderPackageStatus: OrderPackageStatusEnumInputFilter, $orderPaymentStatus: OrderPaymentStatusEnumInputFilter, $orderedAt: DateFilterInput, $pagination: PaginationInput, $search: String, $sort: String, $status: OrderStatusEnumInputFilter, $updatedAt: DateFilterInput){ listOrder(closedAt: $closedAt, id: $id, includeDeleted: $includeDeleted, orderNumber: $orderNumber, orderPackageStatus: $orderPackageStatus, orderPaymentStatus: $orderPaymentStatus, orderedAt: $orderedAt, pagination: $pagination, search: $search, sort: $sort, status: $status, updatedAt: $updatedAt) { count data { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } hasNext limit page } }",
|
|
19
|
+
"listPriceList": "query listPriceList($id: StringFilterInput){ listPriceList(id: $id) { createdAt currency deleted id name updatedAt } }",
|
|
20
|
+
"listProduct": "query listProduct($barcodeList: StringFilterInput, $id: StringFilterInput, $includeDeleted: Boolean, $pagination: PaginationInput, $sku: StringFilterInput, $sort: String){ listProduct(barcodeList: $barcodeList, id: $id, includeDeleted: $includeDeleted, pagination: $pagination, sku: $sku, sort: $sort) { count data { attributes { productAttributeId productAttributeOptionId value } brand { createdAt deleted description id imageId metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType salesChannelIds translations { description locale name } updatedAt } brandId categories { categoryPath conditions { conditionType valueList } createdAt deleted description id imageId isAutomated metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType parentId salesChannelIds shouldMatchAllConditions translations { description locale name } updatedAt } categoryIds createdAt deleted description groupVariantsByVariantTypeId id maxQuantityPerCart metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name productOptionSetId productVariantTypes { order variantTypeId variantValueIds } salesChannelIds shortDescription tagIds tags { createdAt deleted id name translations { description locale name } updatedAt } translations { description locale name } type updatedAt variants { attributes { productAttributeId productAttributeOptionId value } barcodeList createdAt deleted hsCode id images { imageId isMain isVideo order } isActive prices { buyPrice currency discountPrice priceListId sellPrice } sellIfOutOfStock sku updatedAt variantValueIds { variantTypeId variantValueId } weight } vendorId weight } hasNext limit page } }",
|
|
21
|
+
"listProductAttribute": "query listProductAttribute($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput){ listProductAttribute(id: $id, includeDeleted: $includeDeleted, name: $name, updatedAt: $updatedAt) { createdAt deleted description id name options { createdAt deleted id name updatedAt } tableTemplate { columns { id name } rows { id name } } translations { description locale name options { id name } } type updatedAt } }",
|
|
22
|
+
"listProductBrand": "query listProductBrand($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $search: String, $updatedAt: DateFilterInput){ listProductBrand(id: $id, includeDeleted: $includeDeleted, name: $name, search: $search, updatedAt: $updatedAt) { createdAt deleted description id imageId metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType salesChannelIds translations { description locale name } updatedAt } }",
|
|
23
|
+
"listProductOptionSet": "query listProductOptionSet($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $search: String, $updatedAt: DateFilterInput){ listProductOptionSet(id: $id, includeDeleted: $includeDeleted, name: $name, search: $search, updatedAt: $updatedAt) { createdAt deleted id name options { createdAt dateSettings { max maxRelativeNextDate min minRelativeNextDate } deleted fileSettings { allowedExtensions maxQuantity minQuantity } id isOptional name optionalText order otherPrices { currencyCode price } price requiredOptionId requiredOptionValueIds selectSettings { maxSelect minSelect type values { colorCode createdAt deleted id order otherPrices { currencyCode price } price thumbnailImageId updatedAt value } } textSettings { max min } type updatedAt } translations { locale options { id name optionalText values { id value } } } updatedAt } }",
|
|
24
|
+
"listProductStockLocation": "query listProductStockLocation($id: StringFilterInput, $includeDeleted: Boolean, $pagination: PaginationInput, $productId: StringFilterInput, $sort: String, $updatedAt: DateFilterInput, $variantId: StringFilterInput){ listProductStockLocation(id: $id, includeDeleted: $includeDeleted, pagination: $pagination, productId: $productId, sort: $sort, updatedAt: $updatedAt, variantId: $variantId) { count data { createdAt deleted id productId stockCount stockLocationId updatedAt variantId } hasNext limit page } }",
|
|
25
|
+
"listProductTag": "query listProductTag($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput){ listProductTag(id: $id, includeDeleted: $includeDeleted, name: $name, updatedAt: $updatedAt) { createdAt deleted id name translations { description locale name } updatedAt } }",
|
|
26
|
+
"listSalesChannel": "query listSalesChannel($id: StringFilterInput){ listSalesChannel(id: $id) { createdAt deleted id name paymentGateways { id order } priceListId stockLocations { id order } type updatedAt } }",
|
|
27
|
+
"listState": "query listState($countryId: StringFilterInput!, $id: StringFilterInput, $includeDeleted: Boolean, $search: String, $updatedAt: DateFilterInput){ listState(countryId: $countryId, id: $id, includeDeleted: $includeDeleted, search: $search, updatedAt: $updatedAt) { countryId createdAt deleted id name stateCode updatedAt } }",
|
|
28
|
+
"listStockLocation": "query listStockLocation($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput){ listStockLocation(id: $id, includeDeleted: $includeDeleted, name: $name, updatedAt: $updatedAt) { address { address city { code id name } country { code id name } district { code id name } phone postalCode state { code id name } } createdAt deleted deliveryTime description id isRemindOutOfStockEnabled name outOfStockMailList type updatedAt } }",
|
|
29
|
+
"listStorefront": "query listStorefront($id: StringFilterInput){ listStorefront(id: $id) { createdAt deleted id name updatedAt } }",
|
|
30
|
+
"listStorefrontJSScript": "query listStorefrontJSScript($storefrontId: String){ listStorefrontJSScript(storefrontId: $storefrontId) { authorizedAppId createdAt deleted id isActive name order scriptContent storeAppId storefrontId updatedAt } }",
|
|
31
|
+
"listTown": "query listTown($districtId: StringFilterInput!, $id: StringFilterInput, $includeDeleted: Boolean, $search: String, $updatedAt: DateFilterInput){ listTown(districtId: $districtId, id: $id, includeDeleted: $includeDeleted, search: $search, updatedAt: $updatedAt) { createdAt deleted districtId id name order updatedAt } }",
|
|
32
|
+
"listVariantType": "query listVariantType($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput){ listVariantType(id: $id, includeDeleted: $includeDeleted, name: $name, updatedAt: $updatedAt) { createdAt deleted id name selectionType translations { locale name values { id name } } updatedAt values { colorCode createdAt deleted id name thumbnailImageId updatedAt } } }",
|
|
33
|
+
"listWebhook": "query listWebhook{ listWebhook { createdAt deleted endpoint id scope updatedAt } }",
|
|
34
|
+
"me": "query me{ me { addedDate email id name partnerId salesChannelId scope scopes storeAppId supportsMultipleInstallation } }",
|
|
35
|
+
"searchProducts": "query searchProducts($input: SearchInput!){ searchProducts(input: $input) { count data limit page totalCount } }"
|
|
36
|
+
};
|
|
37
|
+
exports.MutationDefaultGQLs = {
|
|
38
|
+
"addCustomTimelineEntry": "mutation addCustomTimelineEntry($input: TimelineInput!){ addCustomTimelineEntry(input: $input) }",
|
|
39
|
+
"addOrderInvoice": "mutation addOrderInvoice($input: AddOrderInvoiceInput!){ addOrderInvoice(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
40
|
+
"bulkUpdateProducts": "mutation bulkUpdateProducts($input: undefined!){ bulkUpdateProducts(input: $input) }",
|
|
41
|
+
"cancelFulfillment": "mutation cancelFulfillment($input: CancelFulfillmentInput!){ cancelFulfillment(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
42
|
+
"createMerchantAppPayment": "mutation createMerchantAppPayment($input: MerchantAppPaymentInput!){ createMerchantAppPayment(input: $input) { appPaymentKey authorizedAppId createdAt deleted id merchantPaymentUrl name paymentDate prices { period price } status storeAppId type updatedAt } }",
|
|
43
|
+
"createOrderWithTransactions": "mutation createOrderWithTransactions($input: CreateOrderWithTransactionsInput!){ createOrderWithTransactions(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
44
|
+
"deleteCategoryList": "mutation deleteCategoryList($idList: undefined!){ deleteCategoryList(idList: $idList) }",
|
|
45
|
+
"deleteProductAttributeList": "mutation deleteProductAttributeList($idList: undefined!){ deleteProductAttributeList(idList: $idList) }",
|
|
46
|
+
"deleteProductBrandList": "mutation deleteProductBrandList($idList: undefined!){ deleteProductBrandList(idList: $idList) }",
|
|
47
|
+
"deleteProductList": "mutation deleteProductList($idList: undefined!){ deleteProductList(idList: $idList) }",
|
|
48
|
+
"deleteProductTagList": "mutation deleteProductTagList($idList: undefined!){ deleteProductTagList(idList: $idList) }",
|
|
49
|
+
"deleteStorefrontJSScript": "mutation deleteStorefrontJSScript($storefrontIdList: undefined!){ deleteStorefrontJSScript(storefrontIdList: $storefrontIdList) }",
|
|
50
|
+
"deleteVariantTypeList": "mutation deleteVariantTypeList($idList: undefined!){ deleteVariantTypeList(idList: $idList) }",
|
|
51
|
+
"deleteWebhook": "mutation deleteWebhook($scopes: undefined!){ deleteWebhook(scopes: $scopes) }",
|
|
52
|
+
"fulfillOrder": "mutation fulfillOrder($input: FulFillOrderInput!){ fulfillOrder(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
53
|
+
"refundOrderLine": "mutation refundOrderLine($input: OrderRefundInput!){ refundOrderLine(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
54
|
+
"saveCategory": "mutation saveCategory($input: CategoryInput!){ saveCategory(input: $input) { categoryPath conditions { conditionType valueList } createdAt deleted description id imageId isAutomated metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType parentId salesChannelIds shouldMatchAllConditions translations { description locale name } updatedAt } }",
|
|
55
|
+
"saveProduct": "mutation saveProduct($input: ProductInput!){ saveProduct(input: $input) { attributes { productAttributeId productAttributeOptionId value } brand { createdAt deleted description id imageId metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType salesChannelIds translations { description locale name } updatedAt } brandId categories { categoryPath conditions { conditionType valueList } createdAt deleted description id imageId isAutomated metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType parentId salesChannelIds shouldMatchAllConditions translations { description locale name } updatedAt } categoryIds createdAt deleted description groupVariantsByVariantTypeId id maxQuantityPerCart metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name productOptionSetId productVariantTypes { order variantTypeId variantValueIds } salesChannelIds shortDescription tagIds tags { createdAt deleted id name translations { description locale name } updatedAt } translations { description locale name } type updatedAt variants { attributes { productAttributeId productAttributeOptionId value } barcodeList createdAt deleted hsCode id images { imageId isMain isVideo order } isActive prices { buyPrice currency discountPrice priceListId sellPrice } sellIfOutOfStock sku updatedAt variantValueIds { variantTypeId variantValueId } weight } vendorId weight } }",
|
|
56
|
+
"saveProductAttribute": "mutation saveProductAttribute($input: ProductAttributeInput!){ saveProductAttribute(input: $input) { createdAt deleted description id name options { createdAt deleted id name updatedAt } tableTemplate { columns { id name } rows { id name } } translations { description locale name options { id name } } type updatedAt } }",
|
|
57
|
+
"saveProductBrand": "mutation saveProductBrand($input: ProductBrandInput!){ saveProductBrand(input: $input) { createdAt deleted description id imageId metaData { createdAt deleted description id metadataOverrides { description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations { description locale pageTitle } updatedAt } name orderType salesChannelIds translations { description locale name } updatedAt } }",
|
|
58
|
+
"saveProductStockLocations": "mutation saveProductStockLocations($input: SaveStockLocationsInput!){ saveProductStockLocations(input: $input) }",
|
|
59
|
+
"saveProductTag": "mutation saveProductTag($input: ProductTagInput!){ saveProductTag(input: $input) { createdAt deleted id name translations { description locale name } updatedAt } }",
|
|
60
|
+
"saveSalesChannel": "mutation saveSalesChannel($input: SalesChannelInput!){ saveSalesChannel(input: $input) { createdAt deleted id name paymentGateways { id order } priceListId stockLocations { id order } type updatedAt } }",
|
|
61
|
+
"saveStorefrontJSScript": "mutation saveStorefrontJSScript($input: StorefrontJSScriptInput!){ saveStorefrontJSScript(input: $input) { authorizedAppId createdAt deleted id isActive name order scriptContent storeAppId storefrontId updatedAt } }",
|
|
62
|
+
"saveVariantPrices": "mutation saveVariantPrices($input: SaveVariantPricesInput!){ saveVariantPrices(input: $input) }",
|
|
63
|
+
"saveVariantType": "mutation saveVariantType($input: VariantTypeInput!){ saveVariantType(input: $input) { createdAt deleted id name selectionType translations { locale name values { id name } } updatedAt values { colorCode createdAt deleted id name thumbnailImageId updatedAt } } }",
|
|
64
|
+
"saveWebhook": "mutation saveWebhook($input: WebhookInput!){ saveWebhook(input: $input) { createdAt deleted endpoint id scope updatedAt } }",
|
|
65
|
+
"updateOrderAddresses": "mutation updateOrderAddresses($input: UpdateOrderAddressesInput!){ updateOrderAddresses(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
66
|
+
"updateOrderLine": "mutation updateOrderLine($input: UpdateOrderInput!){ updateOrderLine(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
67
|
+
"updateOrderPackageStatus": "mutation updateOrderPackageStatus($input: UpdateOrderPackageStatusInput!){ updateOrderPackageStatus(input: $input) { billingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } branch { id name } branchSession { id name } branchSessionId cancelReason cancelledAt checkoutId clientIp createdAt currencyCode currencyRates { code originalRate rate } customer { email firstName fullName id identityNumber isGuestCheckout lastName phone } deleted giftPackageLines { price taxValue } giftPackageNote host id invoices { appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments { amount amountType appliedOrderLines { amount appliedQuantity orderLineId } campaignId campaignType couponId name order type } orderLineItems { createdAt currencyCode deleted discount { amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice id options { name productOptionId productOptionsSetId type values { name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue updatedAt variant { barcodeList brand { id name } categories { categoryPath { id name } id name } id mainImageId name prices { buyPrice currency discountPrice priceListId sellPrice } productId sku slug tagIds taxValue type variantValues { order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageSequence orderPackageStatus orderPackages { createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo { barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderSequence orderTagIds orderedAt paymentMethods { paymentGatewayCode paymentGatewayName price type } priceList { id name } salesChannel { id name type } shippingAddress { addressLine1 addressLine2 city { code id name } company country { code id iso2 iso3 name } district { code id name } firstName id identityNumber isDefault lastName phone postalCode state { code id name } taxNumber taxOffice } shippingLines { isRefunded price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod staff { email firstName lastName } status stockLocation { id name } storefront { id name } storefrontRouting { domain id locale path priceListId } storefrontTheme { id name themeId themeVersionId } taxLines { price rate } terminalId totalFinalPrice totalPrice updatedAt userAgent } }",
|
|
68
|
+
"updateProductSalesChannelStatus": "mutation updateProductSalesChannelStatus($input: undefined!){ updateProductSalesChannelStatus(input: $input) }"
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=default-gqls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-gqls.js","sourceRoot":"","sources":["../../../../src/api/admin/generated/default-gqls.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,kBAAkB,EAAE,iKAAiK;IACrL,mBAAmB,EAAE,6HAA6H;IAClJ,aAAa,EAAE,wUAAwU;IACvV,oBAAoB,EAAE,mwBAAmwB;IACzxB,iBAAiB,EAAE,+JAA+J;IAClL,mBAAmB,EAAE,oGAAoG;IACzH,cAAc,EAAE,kxBAAkxB;IAClyB,UAAU,EAAE,kZAAkZ;IAC9Z,aAAa,EAAE,0bAA0b;IACzc,cAAc,EAAE,yrCAAyrC;IACzsC,cAAc,EAAE,qcAAqc;IACrd,cAAc,EAAE,qHAAqH;IACrI,wBAAwB,EAAE,yUAAyU;IACnW,WAAW,EAAE,ixGAAixG;IAC9xG,eAAe,EAAE,yHAAyH;IAC1I,aAAa,EAAE,4pEAA4pE;IAC3qE,sBAAsB,EAAE,+cAA+c;IACve,kBAAkB,EAAE,knBAAknB;IACtoB,sBAAsB,EAAE,62BAA62B;IACr4B,0BAA0B,EAAE,igBAAigB;IAC7hB,gBAAgB,EAAE,kTAAkT;IACpU,kBAAkB,EAAE,kMAAkM;IACtN,WAAW,EAAE,oUAAoU;IACjV,mBAAmB,EAAE,meAAme;IACxf,gBAAgB,EAAE,kHAAkH;IACpI,wBAAwB,EAAE,0NAA0N;IACpP,UAAU,EAAE,kUAAkU;IAC9U,iBAAiB,EAAE,qZAAqZ;IACxa,aAAa,EAAE,qFAAqF;IACpG,IAAI,EAAE,2HAA2H;IACjI,gBAAgB,EAAE,mHAAmH;CACtI,CAAA;AAEY,QAAA,mBAAmB,GAAG;IACjC,wBAAwB,EAAE,mGAAmG;IAC7H,iBAAiB,EAAE,6oFAA6oF;IAChqF,oBAAoB,EAAE,uFAAuF;IAC7G,mBAAmB,EAAE,mpFAAmpF;IACxqF,0BAA0B,EAAE,sQAAsQ;IAClS,6BAA6B,EAAE,irFAAirF;IAChtF,oBAAoB,EAAE,0FAA0F;IAChH,4BAA4B,EAAE,0GAA0G;IACxI,wBAAwB,EAAE,kGAAkG;IAC5H,mBAAmB,EAAE,wFAAwF;IAC7G,sBAAsB,EAAE,8FAA8F;IACtH,0BAA0B,EAAE,oIAAoI;IAChK,uBAAuB,EAAE,gGAAgG;IACzH,eAAe,EAAE,gFAAgF;IACjG,cAAc,EAAE,ooFAAooF;IACppF,iBAAiB,EAAE,yoFAAyoF;IAC5pF,cAAc,EAAE,8hBAA8hB;IAC9iB,aAAa,EAAE,m5DAAm5D;IACl6D,sBAAsB,EAAE,0UAA0U;IAClW,kBAAkB,EAAE,ucAAuc;IAC3d,2BAA2B,EAAE,mHAAmH;IAChJ,gBAAgB,EAAE,uKAAuK;IACzL,kBAAkB,EAAE,+MAA+M;IACnO,wBAAwB,EAAE,0NAA0N;IACpP,mBAAmB,EAAE,kGAAkG;IACvH,iBAAiB,EAAE,2QAA2Q;IAC9R,aAAa,EAAE,8HAA8H;IAC7I,sBAAsB,EAAE,4pFAA4pF;IACprF,iBAAiB,EAAE,yoFAAyoF;IAC5pF,0BAA0B,EAAE,wqFAAwqF;IACpsF,iCAAiC,EAAE,iHAAiH;CACrJ,CAAA"}
|
|
@@ -582,8 +582,8 @@ export declare type CustomerAddressState = {
|
|
|
582
582
|
};
|
|
583
583
|
export declare type CustomerAttributeValue = {
|
|
584
584
|
__typename?: 'CustomerAttributeValue';
|
|
585
|
-
customerAttributeId
|
|
586
|
-
customerAttributeOptionId
|
|
585
|
+
customerAttributeId?: Maybe<Scalars['String']>;
|
|
586
|
+
customerAttributeOptionId?: Maybe<Scalars['String']>;
|
|
587
587
|
value?: Maybe<Scalars['String']>;
|
|
588
588
|
};
|
|
589
589
|
/** Customer Email Subscription Statuses */
|
|
@@ -673,6 +673,13 @@ export declare type FulfillOrderLineInput = {
|
|
|
673
673
|
orderLineItemId: Scalars['String'];
|
|
674
674
|
quantity: Scalars['Float'];
|
|
675
675
|
};
|
|
676
|
+
export declare type GetVideoUploadURLResponse = {
|
|
677
|
+
__typename?: 'GetVideoUploadURLResponse';
|
|
678
|
+
/** Fields object that should be sent with the video file as multipart form-data. */
|
|
679
|
+
fields: Scalars['JSON'];
|
|
680
|
+
/** Upload url for the specified video. */
|
|
681
|
+
url: Scalars['String'];
|
|
682
|
+
};
|
|
676
683
|
export declare type HTMLMetaData = {
|
|
677
684
|
__typename?: 'HTMLMetaData';
|
|
678
685
|
createdAt?: Maybe<Scalars['Timestamp']>;
|
|
@@ -761,6 +768,15 @@ export declare enum InvoiceTypeEnum {
|
|
|
761
768
|
INDIVIDUAL = "INDIVIDUAL",
|
|
762
769
|
OTHER = "OTHER"
|
|
763
770
|
}
|
|
771
|
+
export declare type Language = {
|
|
772
|
+
__typename?: 'Language';
|
|
773
|
+
createdAt?: Maybe<Scalars['Timestamp']>;
|
|
774
|
+
deleted?: Maybe<Scalars['Boolean']>;
|
|
775
|
+
id: Scalars['ID'];
|
|
776
|
+
locale: Scalars['String'];
|
|
777
|
+
name: Scalars['String'];
|
|
778
|
+
updatedAt?: Maybe<Scalars['Timestamp']>;
|
|
779
|
+
};
|
|
764
780
|
export declare type LocationTranslations = {
|
|
765
781
|
__typename?: 'LocationTranslations';
|
|
766
782
|
en: Scalars['String'];
|
|
@@ -1130,6 +1146,8 @@ export declare type Mutation = {
|
|
|
1130
1146
|
saveSalesChannel?: Maybe<SalesChannel>;
|
|
1131
1147
|
/** Using this api, you can save javascript script to a the storefront. */
|
|
1132
1148
|
saveStorefrontJSScript: StorefrontJSScript;
|
|
1149
|
+
/** Response indicating the status of operation. */
|
|
1150
|
+
saveVariantPrices: Scalars['Boolean'];
|
|
1133
1151
|
/** Using this api, you can update the variant types of products. */
|
|
1134
1152
|
saveVariantType: VariantType;
|
|
1135
1153
|
/** Use this mutation to save webhooks by using multiple `scope` variables. After saving a webhook, **ikas** will start to push new webhooks to given url `endpoint`. If **endpoint** is unreachable or returns an error code other than `HTTP 200` **ikas** will try to push webhook for 3 times then stops sending webhook. */
|
|
@@ -1215,6 +1233,9 @@ export declare type MutationsaveSalesChannelArgs = {
|
|
|
1215
1233
|
export declare type MutationsaveStorefrontJSScriptArgs = {
|
|
1216
1234
|
input: StorefrontJSScriptInput;
|
|
1217
1235
|
};
|
|
1236
|
+
export declare type MutationsaveVariantPricesArgs = {
|
|
1237
|
+
input: SaveVariantPricesInput;
|
|
1238
|
+
};
|
|
1218
1239
|
export declare type MutationsaveVariantTypeArgs = {
|
|
1219
1240
|
input: VariantTypeInput;
|
|
1220
1241
|
};
|
|
@@ -1246,6 +1267,7 @@ export declare type Order = {
|
|
|
1246
1267
|
cancelReason?: Maybe<CancelledReasonEnum>;
|
|
1247
1268
|
/** If the order has been cancelled, it indicates the cancellation date of the order. */
|
|
1248
1269
|
cancelledAt?: Maybe<Scalars['Timestamp']>;
|
|
1270
|
+
checkoutId?: Maybe<Scalars['String']>;
|
|
1249
1271
|
/** The client ip address. */
|
|
1250
1272
|
clientIp?: Maybe<Scalars['String']>;
|
|
1251
1273
|
createdAt?: Maybe<Scalars['Timestamp']>;
|
|
@@ -1823,6 +1845,12 @@ export declare enum OrderPackageStatusEnum {
|
|
|
1823
1845
|
UNABLE_TO_DELIVER = "UNABLE_TO_DELIVER",
|
|
1824
1846
|
UNFULFILLED = "UNFULFILLED"
|
|
1825
1847
|
}
|
|
1848
|
+
export declare type OrderPackageStatusEnumInputFilter = {
|
|
1849
|
+
/** `equal`. The filter used for equality. */
|
|
1850
|
+
eq?: InputMaybe<OrderPackageStatusEnum>;
|
|
1851
|
+
/** Returns a boolean indicating whether a specified value is in an array. */
|
|
1852
|
+
in?: InputMaybe<Array<OrderPackageStatusEnum>>;
|
|
1853
|
+
};
|
|
1826
1854
|
export declare type OrderPaginationResponse = {
|
|
1827
1855
|
__typename?: 'OrderPaginationResponse';
|
|
1828
1856
|
/**
|
|
@@ -2276,6 +2304,7 @@ export declare type ProductImage = {
|
|
|
2276
2304
|
imageId?: Maybe<Scalars['String']>;
|
|
2277
2305
|
/** Whether the image is main image for the product or not. */
|
|
2278
2306
|
isMain: Scalars['Boolean'];
|
|
2307
|
+
isVideo?: Maybe<Scalars['Boolean']>;
|
|
2279
2308
|
/** Order of the product image. */
|
|
2280
2309
|
order: Scalars['Float'];
|
|
2281
2310
|
};
|
|
@@ -2614,6 +2643,7 @@ export declare type Query = {
|
|
|
2614
2643
|
getMerchantLicence: MerchantLicence;
|
|
2615
2644
|
/** Using this api, you can view your sales channel. */
|
|
2616
2645
|
getSalesChannel?: Maybe<SalesChannel>;
|
|
2646
|
+
getVideoUploadUrl: GetVideoUploadURLResponse;
|
|
2617
2647
|
/**
|
|
2618
2648
|
* Using this api, you can view the categories of products.
|
|
2619
2649
|
* Search applies to following fields: `name`
|
|
@@ -2623,6 +2653,7 @@ export declare type Query = {
|
|
|
2623
2653
|
listCountry: Array<Country>;
|
|
2624
2654
|
listCustomer: CustomerPaginationResponse;
|
|
2625
2655
|
listDistrict: Array<District>;
|
|
2656
|
+
listLanguage: Array<Language>;
|
|
2626
2657
|
/** Using this api, you can view the payment features that a merchant has created for the app. */
|
|
2627
2658
|
listMerchantAppPayment: MerchantAppPaymentPaginationResponse;
|
|
2628
2659
|
listOrder: OrderPaginationResponse;
|
|
@@ -2662,6 +2693,9 @@ export declare type QuerygetImageUploadUrlArgs = {
|
|
|
2662
2693
|
imageDir?: InputMaybe<Scalars['String']>;
|
|
2663
2694
|
imageId: Scalars['String'];
|
|
2664
2695
|
};
|
|
2696
|
+
export declare type QuerygetVideoUploadUrlArgs = {
|
|
2697
|
+
videoId: Scalars['String'];
|
|
2698
|
+
};
|
|
2665
2699
|
export declare type QuerylistCategoryArgs = {
|
|
2666
2700
|
categoryPath?: InputMaybe<CategoryPathFilterInput>;
|
|
2667
2701
|
id?: InputMaybe<StringFilterInput>;
|
|
@@ -2706,6 +2740,9 @@ export declare type QuerylistDistrictArgs = {
|
|
|
2706
2740
|
stateId?: InputMaybe<StringFilterInput>;
|
|
2707
2741
|
updatedAt?: InputMaybe<DateFilterInput>;
|
|
2708
2742
|
};
|
|
2743
|
+
export declare type QuerylistLanguageArgs = {
|
|
2744
|
+
id?: InputMaybe<StringFilterInput>;
|
|
2745
|
+
};
|
|
2709
2746
|
export declare type QuerylistMerchantAppPaymentArgs = {
|
|
2710
2747
|
id?: InputMaybe<StringFilterInput>;
|
|
2711
2748
|
pagination?: InputMaybe<PaginationInput>;
|
|
@@ -2715,9 +2752,10 @@ export declare type QuerylistOrderArgs = {
|
|
|
2715
2752
|
id?: InputMaybe<StringFilterInput>;
|
|
2716
2753
|
includeDeleted?: InputMaybe<Scalars['Boolean']>;
|
|
2717
2754
|
orderNumber?: InputMaybe<StringFilterInput>;
|
|
2755
|
+
orderPackageStatus?: InputMaybe<OrderPackageStatusEnumInputFilter>;
|
|
2756
|
+
orderPaymentStatus?: InputMaybe<OrderPaymentStatusEnumInputFilter>;
|
|
2718
2757
|
orderedAt?: InputMaybe<DateFilterInput>;
|
|
2719
2758
|
pagination?: InputMaybe<PaginationInput>;
|
|
2720
|
-
paymentStatus?: InputMaybe<OrderPaymentStatusEnumInputFilter>;
|
|
2721
2759
|
search?: InputMaybe<Scalars['String']>;
|
|
2722
2760
|
sort?: InputMaybe<Scalars['String']>;
|
|
2723
2761
|
status?: InputMaybe<OrderStatusEnumInputFilter>;
|
|
@@ -2859,6 +2897,11 @@ export declare enum SalesChannelTypeEnum {
|
|
|
2859
2897
|
export declare type SaveStockLocationsInput = {
|
|
2860
2898
|
productStockLocationInputs?: InputMaybe<Array<ProductStockLocationInput>>;
|
|
2861
2899
|
};
|
|
2900
|
+
export declare type SaveVariantPricesInput = {
|
|
2901
|
+
priceListId?: InputMaybe<Scalars['String']>;
|
|
2902
|
+
/** List of variants to be updated. Maximum 3000 entries allowed. */
|
|
2903
|
+
variantPriceInputs: Array<VariantPriceInput>;
|
|
2904
|
+
};
|
|
2862
2905
|
export declare type SearchInput = {
|
|
2863
2906
|
/** Barcode list search products. */
|
|
2864
2907
|
barcodeList?: InputMaybe<Array<Scalars['String']>>;
|
|
@@ -2910,8 +2953,10 @@ export declare type StockLocation = {
|
|
|
2910
2953
|
/** It is the description of the stock location. */
|
|
2911
2954
|
description?: Maybe<Scalars['String']>;
|
|
2912
2955
|
id: Scalars['ID'];
|
|
2956
|
+
isRemindOutOfStockEnabled?: Maybe<Scalars['Boolean']>;
|
|
2913
2957
|
/** It is the name of the stock location. */
|
|
2914
2958
|
name: Scalars['String'];
|
|
2959
|
+
outOfStockMailList?: Maybe<Array<Scalars['String']>>;
|
|
2915
2960
|
/** It is the type enum of the stock location. */
|
|
2916
2961
|
type?: Maybe<StockLocationTypeEnum>;
|
|
2917
2962
|
updatedAt?: Maybe<Scalars['Timestamp']>;
|
|
@@ -3184,6 +3229,15 @@ export declare type VariantInput = {
|
|
|
3184
3229
|
variantValueIds?: InputMaybe<Array<VariantValueRelationInput>>;
|
|
3185
3230
|
weight?: InputMaybe<Scalars['Float']>;
|
|
3186
3231
|
};
|
|
3232
|
+
export declare type VariantPriceInput = {
|
|
3233
|
+
deleted?: InputMaybe<Scalars['Boolean']>;
|
|
3234
|
+
/** New prices info to update. This operation overrides price objects given here. */
|
|
3235
|
+
price: ProductPriceInput;
|
|
3236
|
+
/** Id of the corresponding product. */
|
|
3237
|
+
productId: Scalars['String'];
|
|
3238
|
+
/** Id of the variant that's prices to be updated. */
|
|
3239
|
+
variantId: Scalars['String'];
|
|
3240
|
+
};
|
|
3187
3241
|
/** Variant Selection Types */
|
|
3188
3242
|
export declare enum VariantSelectionTypeEnum {
|
|
3189
3243
|
CHOICE = "CHOICE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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CAAA;AACjC,CAAC,EANW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAMpC;AA+BD,kCAAkC;AAClC,IAAY,6BASX;AATD,WAAY,6BAA6B;IACvC,4DAA2B,CAAA;IAC3B,kFAAiD,CAAA;IACjD,gEAA+B,CAAA;IAC/B,gFAA+C,CAAA;IAC/C,8DAA6B,CAAA;IAC7B,sDAAqB,CAAA;IACrB,kDAAiB,CAAA;IACjB,kDAAiB,CAAA;AACnB,CAAC,EATW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QASxC;AAsLD,gCAAgC;AAChC,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACnC,8DAAiC,CAAA;IACjC,wFAA2D,CAAA;IAC3D,kEAAqC,CAAA;IACrC,oFAAuD,CAAA;AACzD,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAsFD,2CAA2C;AAC3C,IAAY,qCAIX;AAJD,WAAY,qCAAqC;IAC/C,0EAAiC,CAAA;IACjC,sFAA6C,CAAA;IAC7C,kEAAyB,CAAA;AAC3B,CAAC,EAJW,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QAIhD;AAgCD,wCAAwC;AACxC,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,6DAA2B,CAAA;IAC3B,uDAAqB,CAAA;IACrB,mDAAiB,CAAA;AACnB,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/admin/generated/index.ts"],"names":[],"mappings":";;;AAoCA,2BAA2B;AAC3B,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;AACzB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,uBAAuB;AACvB,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACj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IACrC,wEAAuC,CAAA;IACvC,oEAAmC,CAAA;IACnC,gFAA+C,CAAA;IAC/C,sFAAqD,CAAA;IACrD,sEAAqC,CAAA;AACvC,CAAC,EAPW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAOxC;AAED,2BAA2B;AAC3B,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAuDD,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,+CAAuB,CAAA;IACvB,6CAAqB,CAAA;IACrB,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,uCAAe,CAAA;AACjB,CAAC,EAPW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAO/B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,+CAAqB,CAAA;IACrB,2CAAiB,CAAA;AACnB,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;AACb,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC;AA6JD,8BAA8B;AAC9B,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,2CAAe,CAAA;AACjB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ikasAdminGraphQLAPIClient } from '
|
|
2
|
-
import { Mutation, MutationaddCustomTimelineEntryArgs, MutationaddOrderInvoiceArgs, MutationbulkUpdateProductsArgs, MutationcancelFulfillmentArgs, MutationcreateMerchantAppPaymentArgs, MutationcreateOrderWithTransactionsArgs, MutationdeleteCategoryListArgs, MutationdeleteProductAttributeListArgs, MutationdeleteProductBrandListArgs, MutationdeleteProductListArgs, MutationdeleteProductTagListArgs, MutationdeleteStorefrontJSScriptArgs, MutationdeleteVariantTypeListArgs, MutationdeleteWebhookArgs, MutationfulfillOrderArgs, MutationrefundOrderLineArgs, MutationsaveCategoryArgs, MutationsaveProductArgs, MutationsaveProductAttributeArgs, MutationsaveProductBrandArgs, MutationsaveProductStockLocationsArgs, MutationsaveProductTagArgs, MutationsaveSalesChannelArgs, MutationsaveStorefrontJSScriptArgs, MutationsaveVariantTypeArgs, MutationsaveWebhookArgs, MutationupdateOrderAddressesArgs, MutationupdateOrderLineArgs, MutationupdateOrderPackageStatusArgs, MutationupdateProductSalesChannelStatusArgs } from './
|
|
3
|
-
import { APIResult, MutationOptions } from '
|
|
1
|
+
import { ikasAdminGraphQLAPIClient } from '../admin-client';
|
|
2
|
+
import { Mutation, MutationaddCustomTimelineEntryArgs, MutationaddOrderInvoiceArgs, MutationbulkUpdateProductsArgs, MutationcancelFulfillmentArgs, MutationcreateMerchantAppPaymentArgs, MutationcreateOrderWithTransactionsArgs, MutationdeleteCategoryListArgs, MutationdeleteProductAttributeListArgs, MutationdeleteProductBrandListArgs, MutationdeleteProductListArgs, MutationdeleteProductTagListArgs, MutationdeleteStorefrontJSScriptArgs, MutationdeleteVariantTypeListArgs, MutationdeleteWebhookArgs, MutationfulfillOrderArgs, MutationrefundOrderLineArgs, MutationsaveCategoryArgs, MutationsaveProductArgs, MutationsaveProductAttributeArgs, MutationsaveProductBrandArgs, MutationsaveProductStockLocationsArgs, MutationsaveProductTagArgs, MutationsaveSalesChannelArgs, MutationsaveStorefrontJSScriptArgs, MutationsaveVariantPricesArgs, MutationsaveVariantTypeArgs, MutationsaveWebhookArgs, MutationupdateOrderAddressesArgs, MutationupdateOrderLineArgs, MutationupdateOrderPackageStatusArgs, MutationupdateProductSalesChannelStatusArgs } from './';
|
|
3
|
+
import { APIResult, MutationOptions } from '../../base';
|
|
4
4
|
declare type Mutations = {
|
|
5
5
|
[p in keyof Omit<Mutation, '__typename'>]: (options: MutationOptions<any>) => Promise<APIResult<Partial<Mutation[p]>>>;
|
|
6
6
|
};
|
|
@@ -31,6 +31,7 @@ export declare class AdminMutation implements Mutations {
|
|
|
31
31
|
saveProductTag(options: MutationOptions<MutationsaveProductTagArgs>): Promise<APIResult<Partial<Mutation['saveProductTag']>>>;
|
|
32
32
|
saveSalesChannel(options: MutationOptions<MutationsaveSalesChannelArgs>): Promise<APIResult<Partial<Mutation['saveSalesChannel']>>>;
|
|
33
33
|
saveStorefrontJSScript(options: MutationOptions<MutationsaveStorefrontJSScriptArgs>): Promise<APIResult<Partial<Mutation['saveStorefrontJSScript']>>>;
|
|
34
|
+
saveVariantPrices(options: MutationOptions<MutationsaveVariantPricesArgs>): Promise<APIResult<Partial<Mutation['saveVariantPrices']>>>;
|
|
34
35
|
saveVariantType(options: MutationOptions<MutationsaveVariantTypeArgs>): Promise<APIResult<Partial<Mutation['saveVariantType']>>>;
|
|
35
36
|
saveWebhook(options: MutationOptions<MutationsaveWebhookArgs>): Promise<APIResult<Partial<Mutation['saveWebhook']>>>;
|
|
36
37
|
updateOrderAddresses(options: MutationOptions<MutationupdateOrderAddressesArgs>): Promise<APIResult<Partial<Mutation['updateOrderAddresses']>>>;
|
|
@@ -220,6 +220,13 @@ var AdminMutation = /** @class */ (function () {
|
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
|
+
AdminMutation.prototype.saveVariantPrices = function (options) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
+
return __generator(this, function (_a) {
|
|
226
|
+
return [2 /*return*/, this.client.mutate(__assign(__assign({}, options), { operationName: 'saveVariantPrices' }))];
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
};
|
|
223
230
|
AdminMutation.prototype.saveVariantType = function (options) {
|
|
224
231
|
return __awaiter(this, void 0, void 0, function () {
|
|
225
232
|
return __generator(this, function (_a) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../../../src/api/admin/generated/mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA;IAGE,uBAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEK,8CAAsB,GAA5B,UAA6B,OAA4D;;;gBACvF,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,uBAAmD,OAAO,KAAE,aAAa,EAAE,wBAAwB,IAAG,EAAC;;;KACjI;IAEK,uCAAe,GAArB,UAAsB,OAAqD;;;gBACzE,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,uBAA4C,OAAO,KAAE,aAAa,EAAE,iBAAiB,IAAG,EAAC;;;KACnH;IAEK,0CAAkB,GAAxB,UAAyB,OAAwD;;;gBAC/E,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,uBAA+C,OAAO,KAAE,aAAa,EAAE,oBAAoB,IAAG,EAAC;;;KACzH;IAEK,yCAAiB,GAAvB,UAAwB,OAAuD;;;gBAC7E,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,uBAA8C,OAAO,KAAE,aAAa,EAAE,mBAAmB,IAAG,EAAC;;;KACvH;IAEK,gDAAwB,GAA9B,UAA+B,OAA8D;;;gBAC3F,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,uBAAqD,OAAO,KAAE,aAAa,EAAE,0BAA0B,IAAG,EAAC;;;KACrI;IAEK,mDAA2B,GAAjC,UAAkC,OAAiE;;;gBACjG,sBAAO,IAAI,CAAC,MAAM,CAAC,MAAM,uBAAwD,OAAO,KAAE,aAAa,EAAE,6BAA6B,IAAG,EAAC;;;KAC3I;IAEK,0CAAkB,GAAxB,UAAyB,OAAwD;;;gBAC/E,sBAAO,IAAI,CAAC,MAAM,CAAC,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VideoUploadUrlArgs, QuerylistCategoryArgs, QuerylistCityArgs, QuerylistCountryArgs, QuerylistCustomerArgs, QuerylistDistrictArgs, QuerylistLanguageArgs, QuerylistMerchantAppPaymentArgs, QuerylistOrderArgs, QuerylistPriceListArgs, QuerylistProductArgs, QuerylistProductAttributeArgs, QuerylistProductBrandArgs, QuerylistProductOptionSetArgs, QuerylistProductStockLocationArgs, QuerylistProductTagArgs, QuerylistSalesChannelArgs, QuerylistStateArgs, QuerylistStockLocationArgs, QuerylistStorefrontArgs, QuerylistStorefrontJSScriptArgs, QuerylistTownArgs, QuerylistVariantTypeArgs, QuerysearchProductsArgs } from './';
|
|
3
|
+
import { APIResult, QueryOptions } from '../../base';
|
|
4
|
+
declare type Queries = {
|
|
5
|
+
[p in keyof Omit<Query, '__typename'>]: (options: QueryOptions<any>) => Promise<APIResult<Partial<Query[p]>>>;
|
|
6
|
+
};
|
|
7
|
+
export declare class AdminQuery implements Queries {
|
|
8
|
+
client: ikasAdminGraphQLAPIClient<any>;
|
|
9
|
+
constructor(client: ikasAdminGraphQLAPIClient<any>);
|
|
10
|
+
getAuthorizedApp(options: QueryOptions<undefined>): Promise<APIResult<Partial<Query['getAuthorizedApp']>>>;
|
|
11
|
+
getImageUploadUrl(options: QueryOptions<QuerygetImageUploadUrlArgs>): Promise<APIResult<Partial<Query['getImageUploadUrl']>>>;
|
|
12
|
+
getMerchant(options: QueryOptions<undefined>): Promise<APIResult<Partial<Query['getMerchant']>>>;
|
|
13
|
+
getMerchantLicence(options: QueryOptions<undefined>): Promise<APIResult<Partial<Query['getMerchantLicence']>>>;
|
|
14
|
+
getSalesChannel(options: QueryOptions<undefined>): Promise<APIResult<Partial<Query['getSalesChannel']>>>;
|
|
15
|
+
getVideoUploadUrl(options: QueryOptions<QuerygetVideoUploadUrlArgs>): Promise<APIResult<Partial<Query['getVideoUploadUrl']>>>;
|
|
16
|
+
listCategory(options: QueryOptions<QuerylistCategoryArgs>): Promise<APIResult<Partial<Query['listCategory']>>>;
|
|
17
|
+
listCity(options: QueryOptions<QuerylistCityArgs>): Promise<APIResult<Partial<Query['listCity']>>>;
|
|
18
|
+
listCountry(options: QueryOptions<QuerylistCountryArgs>): Promise<APIResult<Partial<Query['listCountry']>>>;
|
|
19
|
+
listCustomer(options: QueryOptions<QuerylistCustomerArgs>): Promise<APIResult<Partial<Query['listCustomer']>>>;
|
|
20
|
+
listDistrict(options: QueryOptions<QuerylistDistrictArgs>): Promise<APIResult<Partial<Query['listDistrict']>>>;
|
|
21
|
+
listLanguage(options: QueryOptions<QuerylistLanguageArgs>): Promise<APIResult<Partial<Query['listLanguage']>>>;
|
|
22
|
+
listMerchantAppPayment(options: QueryOptions<QuerylistMerchantAppPaymentArgs>): Promise<APIResult<Partial<Query['listMerchantAppPayment']>>>;
|
|
23
|
+
listOrder(options: QueryOptions<QuerylistOrderArgs>): Promise<APIResult<Partial<Query['listOrder']>>>;
|
|
24
|
+
listPriceList(options: QueryOptions<QuerylistPriceListArgs>): Promise<APIResult<Partial<Query['listPriceList']>>>;
|
|
25
|
+
listProduct(options: QueryOptions<QuerylistProductArgs>): Promise<APIResult<Partial<Query['listProduct']>>>;
|
|
26
|
+
listProductAttribute(options: QueryOptions<QuerylistProductAttributeArgs>): Promise<APIResult<Partial<Query['listProductAttribute']>>>;
|
|
27
|
+
listProductBrand(options: QueryOptions<QuerylistProductBrandArgs>): Promise<APIResult<Partial<Query['listProductBrand']>>>;
|
|
28
|
+
listProductOptionSet(options: QueryOptions<QuerylistProductOptionSetArgs>): Promise<APIResult<Partial<Query['listProductOptionSet']>>>;
|
|
29
|
+
listProductStockLocation(options: QueryOptions<QuerylistProductStockLocationArgs>): Promise<APIResult<Partial<Query['listProductStockLocation']>>>;
|
|
30
|
+
listProductTag(options: QueryOptions<QuerylistProductTagArgs>): Promise<APIResult<Partial<Query['listProductTag']>>>;
|
|
31
|
+
listSalesChannel(options: QueryOptions<QuerylistSalesChannelArgs>): Promise<APIResult<Partial<Query['listSalesChannel']>>>;
|
|
32
|
+
listState(options: QueryOptions<QuerylistStateArgs>): Promise<APIResult<Partial<Query['listState']>>>;
|
|
33
|
+
listStockLocation(options: QueryOptions<QuerylistStockLocationArgs>): Promise<APIResult<Partial<Query['listStockLocation']>>>;
|
|
34
|
+
listStorefront(options: QueryOptions<QuerylistStorefrontArgs>): Promise<APIResult<Partial<Query['listStorefront']>>>;
|
|
35
|
+
listStorefrontJSScript(options: QueryOptions<QuerylistStorefrontJSScriptArgs>): Promise<APIResult<Partial<Query['listStorefrontJSScript']>>>;
|
|
36
|
+
listTown(options: QueryOptions<QuerylistTownArgs>): Promise<APIResult<Partial<Query['listTown']>>>;
|
|
37
|
+
listVariantType(options: QueryOptions<QuerylistVariantTypeArgs>): Promise<APIResult<Partial<Query['listVariantType']>>>;
|
|
38
|
+
listWebhook(options: QueryOptions<undefined>): Promise<APIResult<Partial<Query['listWebhook']>>>;
|
|
39
|
+
me(options: QueryOptions<undefined>): Promise<APIResult<Partial<Query['me']>>>;
|
|
40
|
+
searchProducts(options: QueryOptions<QuerysearchProductsArgs>): Promise<APIResult<Partial<Query['searchProducts']>>>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -59,6 +59,13 @@ var AdminQuery = /** @class */ (function () {
|
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
+
AdminQuery.prototype.getImageUploadUrl = function (options) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
+
return __generator(this, function (_a) {
|
|
65
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'getImageUploadUrl' }))];
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
};
|
|
62
69
|
AdminQuery.prototype.getMerchant = function (options) {
|
|
63
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
64
71
|
return __generator(this, function (_a) {
|
|
@@ -80,6 +87,13 @@ var AdminQuery = /** @class */ (function () {
|
|
|
80
87
|
});
|
|
81
88
|
});
|
|
82
89
|
};
|
|
90
|
+
AdminQuery.prototype.getVideoUploadUrl = function (options) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'getVideoUploadUrl' }))];
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
};
|
|
83
97
|
AdminQuery.prototype.listCategory = function (options) {
|
|
84
98
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
99
|
return __generator(this, function (_a) {
|
|
@@ -87,6 +101,20 @@ var AdminQuery = /** @class */ (function () {
|
|
|
87
101
|
});
|
|
88
102
|
});
|
|
89
103
|
};
|
|
104
|
+
AdminQuery.prototype.listCity = function (options) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listCity' }))];
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
AdminQuery.prototype.listCountry = function (options) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listCountry' }))];
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
90
118
|
AdminQuery.prototype.listCustomer = function (options) {
|
|
91
119
|
return __awaiter(this, void 0, void 0, function () {
|
|
92
120
|
return __generator(this, function (_a) {
|
|
@@ -94,6 +122,20 @@ var AdminQuery = /** @class */ (function () {
|
|
|
94
122
|
});
|
|
95
123
|
});
|
|
96
124
|
};
|
|
125
|
+
AdminQuery.prototype.listDistrict = function (options) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
return __generator(this, function (_a) {
|
|
128
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listDistrict' }))];
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
AdminQuery.prototype.listLanguage = function (options) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listLanguage' }))];
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
};
|
|
97
139
|
AdminQuery.prototype.listMerchantAppPayment = function (options) {
|
|
98
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
99
141
|
return __generator(this, function (_a) {
|
|
@@ -136,6 +178,13 @@ var AdminQuery = /** @class */ (function () {
|
|
|
136
178
|
});
|
|
137
179
|
});
|
|
138
180
|
};
|
|
181
|
+
AdminQuery.prototype.listProductOptionSet = function (options) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
return __generator(this, function (_a) {
|
|
184
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listProductOptionSet' }))];
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
};
|
|
139
188
|
AdminQuery.prototype.listProductStockLocation = function (options) {
|
|
140
189
|
return __awaiter(this, void 0, void 0, function () {
|
|
141
190
|
return __generator(this, function (_a) {
|
|
@@ -157,6 +206,13 @@ var AdminQuery = /** @class */ (function () {
|
|
|
157
206
|
});
|
|
158
207
|
});
|
|
159
208
|
};
|
|
209
|
+
AdminQuery.prototype.listState = function (options) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
211
|
+
return __generator(this, function (_a) {
|
|
212
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listState' }))];
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
160
216
|
AdminQuery.prototype.listStockLocation = function (options) {
|
|
161
217
|
return __awaiter(this, void 0, void 0, function () {
|
|
162
218
|
return __generator(this, function (_a) {
|
|
@@ -178,6 +234,13 @@ var AdminQuery = /** @class */ (function () {
|
|
|
178
234
|
});
|
|
179
235
|
});
|
|
180
236
|
};
|
|
237
|
+
AdminQuery.prototype.listTown = function (options) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'listTown' }))];
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
181
244
|
AdminQuery.prototype.listVariantType = function (options) {
|
|
182
245
|
return __awaiter(this, void 0, void 0, function () {
|
|
183
246
|
return __generator(this, function (_a) {
|
|
@@ -192,6 +255,13 @@ var AdminQuery = /** @class */ (function () {
|
|
|
192
255
|
});
|
|
193
256
|
});
|
|
194
257
|
};
|
|
258
|
+
AdminQuery.prototype.me = function (options) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
260
|
+
return __generator(this, function (_a) {
|
|
261
|
+
return [2 /*return*/, this.client.query(__assign(__assign({}, options), { operationName: 'me' }))];
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
195
265
|
AdminQuery.prototype.searchProducts = function (options) {
|
|
196
266
|
return __awaiter(this, void 0, void 0, function () {
|
|
197
267
|
return __generator(this, function (_a) {
|
|
@@ -199,24 +269,6 @@ var AdminQuery = /** @class */ (function () {
|
|
|
199
269
|
});
|
|
200
270
|
});
|
|
201
271
|
};
|
|
202
|
-
AdminQuery.prototype.listCity = function (options) {
|
|
203
|
-
return this.client.query(__assign(__assign({}, options), { operationName: 'listCity' }));
|
|
204
|
-
};
|
|
205
|
-
AdminQuery.prototype.listCountry = function (options) {
|
|
206
|
-
return this.client.query(__assign(__assign({}, options), { operationName: 'listCountry' }));
|
|
207
|
-
};
|
|
208
|
-
AdminQuery.prototype.listDistrict = function (options) {
|
|
209
|
-
return this.client.query(__assign(__assign({}, options), { operationName: 'listDistrict' }));
|
|
210
|
-
};
|
|
211
|
-
AdminQuery.prototype.listState = function (options) {
|
|
212
|
-
return this.client.query(__assign(__assign({}, options), { operationName: 'listState' }));
|
|
213
|
-
};
|
|
214
|
-
AdminQuery.prototype.listTown = function (options) {
|
|
215
|
-
return this.client.query(__assign(__assign({}, options), { operationName: 'listTown' }));
|
|
216
|
-
};
|
|
217
|
-
AdminQuery.prototype.listProductOptionSet = function (options) {
|
|
218
|
-
return this.client.query(__assign(__assign({}, options), { operationName: 'listProductOptionSet' }));
|
|
219
|
-
};
|
|
220
272
|
return AdminQuery;
|
|
221
273
|
}());
|
|
222
274
|
exports.AdminQuery = AdminQuery;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/api/admin/generated/query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA;IAGE,oBAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEK,qCAAgB,GAAtB,UAAuB,OAAgC;;;gBACrD,sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAA0C,OAAO,KAAE,aAAa,EAAE,kBAAkB,IAAG,EAAC;;;KACjH;IAEK,sCAAiB,GAAvB,UAAwB,OAAiD;;;gBACvE,sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAA2C,OAAO,KAAE,aAAa,EAAE,mBAAmB,IAAG,EAAC;;;KACnH;IAEK,gCAAW,GAAjB,UAAkB,OAAgC;;;gBAChD,sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAAqC,OAAO,KAAE,aAAa,EAAE,aAAa,IAAG,EAAC;;;KACvG;IAEK,uCAAkB,GAAxB,UAAyB,OAAgC;;;gBACvD,sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAA4C,OAAO,KAAE,aAAa,EAAE,oBAAoB,IAAG,EAAC;;;KACrH;IAEK,oCAAe,GAArB,UAAsB,OAAgC;;;gBACpD,sBAAO,IAAI,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sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAAwC,OAAO,KAAE,aAAa,EAAE,gBAAgB,IAAG,EAAC;;;KAC7G;IACH,iBAAC;AAAD,CAAC,AAlID,IAkIC;AAlIY,gCAAU"}
|
package/dist/api/admin/index.js
CHANGED
|
@@ -12,6 +12,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./generated"), exports);
|
|
14
14
|
__exportStar(require("./admin-client"), exports);
|
|
15
|
-
__exportStar(require("./query-gql"), exports);
|
|
16
|
-
__exportStar(require("./mutation-gql"), exports);
|
|
17
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B"}
|
package/dist/api/base.d.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
2
|
import { GraphQLError } from 'graphql-request/dist/types';
|
|
3
3
|
export declare type QueryOptions<T> = {
|
|
4
|
-
query
|
|
4
|
+
query?: string;
|
|
5
5
|
variables?: T;
|
|
6
|
-
operationName
|
|
6
|
+
operationName: string;
|
|
7
7
|
};
|
|
8
8
|
export declare type MutationOptions<T> = {
|
|
9
|
-
mutation
|
|
9
|
+
mutation?: string;
|
|
10
|
+
variables?: T;
|
|
11
|
+
operationName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type RequestOptions<T> = {
|
|
14
|
+
gql: string;
|
|
10
15
|
variables?: T;
|
|
11
16
|
operationName?: string;
|
|
12
17
|
};
|
|
@@ -30,7 +35,7 @@ export declare class BaseGraphQLAPIClient<TokenData> {
|
|
|
30
35
|
createGraphQLClient(): GraphQLClient;
|
|
31
36
|
query<TData = any, TVariables = any>(options: QueryOptions<TVariables>): Promise<APIResult<TData>>;
|
|
32
37
|
mutate<TData = any, TVariables = any>(options: MutationOptions<TVariables>): Promise<APIResult<TData>>;
|
|
33
|
-
_makeRequest<TData, TVariables>(options:
|
|
38
|
+
_makeRequest<TData, TVariables>(options: RequestOptions<TVariables>): Promise<APIResult<TData>>;
|
|
34
39
|
_checkToken(): Promise<void>;
|
|
35
40
|
}
|
|
36
41
|
export declare class APIResult<T> {
|
package/dist/api/base.js
CHANGED
|
@@ -49,6 +49,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.APIResult = exports.BaseGraphQLAPIClient = void 0;
|
|
51
51
|
var graphql_request_1 = require("graphql-request");
|
|
52
|
+
var default_gqls_1 = require("./admin/generated/default-gqls");
|
|
52
53
|
var BaseGraphQLAPIClient = /** @class */ (function () {
|
|
53
54
|
function BaseGraphQLAPIClient(_a) {
|
|
54
55
|
var accessToken = _a.accessToken, graphApiUrl = _a.graphApiUrl, onCheckToken = _a.onCheckToken, tokenData = _a.tokenData;
|
|
@@ -100,14 +101,14 @@ var BaseGraphQLAPIClient = /** @class */ (function () {
|
|
|
100
101
|
BaseGraphQLAPIClient.prototype.query = function (options) {
|
|
101
102
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
103
|
return __generator(this, function (_a) {
|
|
103
|
-
return [2 /*return*/, this._makeRequest(options)];
|
|
104
|
+
return [2 /*return*/, this._makeRequest(__assign(__assign({}, options), { gql: options.query || default_gqls_1.QueryDefaultGQLs[options.operationName] || '' }))];
|
|
104
105
|
});
|
|
105
106
|
});
|
|
106
107
|
};
|
|
107
108
|
BaseGraphQLAPIClient.prototype.mutate = function (options) {
|
|
108
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
110
|
return __generator(this, function (_a) {
|
|
110
|
-
return [2 /*return*/, this._makeRequest(__assign(__assign({}, options), {
|
|
111
|
+
return [2 /*return*/, this._makeRequest(__assign(__assign({}, options), { gql: options.mutation || default_gqls_1.MutationDefaultGQLs[options.operationName] || '' }))];
|
|
111
112
|
});
|
|
112
113
|
});
|
|
113
114
|
};
|
|
@@ -122,7 +123,7 @@ var BaseGraphQLAPIClient = /** @class */ (function () {
|
|
|
122
123
|
_a.label = 2;
|
|
123
124
|
case 2:
|
|
124
125
|
_a.trys.push([2, 4, , 5]);
|
|
125
|
-
return [4 /*yield*/, this._client.request(options.
|
|
126
|
+
return [4 /*yield*/, this._client.request(options.gql, options.variables)];
|
|
126
127
|
case 3:
|
|
127
128
|
data = _a.sent();
|
|
128
129
|
return [2 /*return*/, new APIResult({ data: options.operationName ? data[options.operationName] : data })];
|
package/dist/api/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/api/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6D;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/api/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA6D;AAE7D,+DAAuF;AA6BvF;IAOE,8BAAY,EAA6F;YAA3F,WAAW,iBAAA,EAAE,WAAW,iBAAA,EAAE,YAAY,kBAAA,EAAE,SAAS,eAAA;QAC7D,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC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AAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,sBAAI,gCAAS;aAAb;;YACE,OAAO,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,CAAA,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC7C,CAAC;;;OAAA;IACH,gBAAC;AAAD,CAAC,AAfD,IAeC;AAfY,8BAAS"}
|
|
@@ -38,3 +38,15 @@ export declare type OAuthTokenResponse = {
|
|
|
38
38
|
scope: string;
|
|
39
39
|
refresh_token: string;
|
|
40
40
|
};
|
|
41
|
+
export declare type AuthConnectParams = {
|
|
42
|
+
storeName: string;
|
|
43
|
+
timestamp: string;
|
|
44
|
+
merchantId: string;
|
|
45
|
+
signature: string;
|
|
46
|
+
authorizedAppId: string;
|
|
47
|
+
};
|
|
48
|
+
export declare type OAuthCallbackParams = {
|
|
49
|
+
storeName: string;
|
|
50
|
+
code: string;
|
|
51
|
+
state: string;
|
|
52
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validateAuthSignature = void 0;
|
|
7
|
+
var crypto_1 = __importDefault(require("crypto"));
|
|
8
|
+
function validateAuthSignature(_a, appSecret) {
|
|
9
|
+
var storeName = _a.storeName, signature = _a.signature, merchantId = _a.merchantId, timestamp = _a.timestamp, authorizedAppId = _a.authorizedAppId;
|
|
10
|
+
var hashData = "".concat(storeName).concat(merchantId).concat(timestamp);
|
|
11
|
+
var date = new Date(parseInt(timestamp));
|
|
12
|
+
var dateDiff = (new Date().getTime() - date.getTime()) / 1000;
|
|
13
|
+
var calculatedSignature = crypto_1.default
|
|
14
|
+
.createHmac('sha256', appSecret)
|
|
15
|
+
.update(hashData)
|
|
16
|
+
.digest('hex');
|
|
17
|
+
return signature == calculatedSignature && dateDiff < 120;
|
|
18
|
+
}
|
|
19
|
+
exports.validateAuthSignature = validateAuthSignature;
|
|
20
|
+
//# sourceMappingURL=auth-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-helpers.js","sourceRoot":"","sources":["../../src/helpers/auth-helpers.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA4B;AAG5B,SAAgB,qBAAqB,CAAC,EAAmF,EAAE,SAAiB;QAApG,SAAS,eAAA,EAAE,SAAS,eAAA,EAAE,UAAU,gBAAA,EAAE,SAAS,eAAA,EAAE,eAAe,qBAAA;IAClG,IAAM,QAAQ,GAAG,UAAG,SAAS,SAAG,UAAU,SAAG,SAAS,CAAE,CAAC;IACzD,IAAM,IAAI,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAmB,CAAC,CAAC,CAAC;IACrD,IAAM,QAAQ,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAChE,IAAM,mBAAmB,GAAG,gBAAM;SAC/B,UAAU,CAAC,QAAQ,EAAE,SAAmB,CAAC;SACzC,MAAM,CAAC,QAAQ,CAAC;SAChB,MAAM,CAAC,KAAK,CAAC,CAAC;IAEjB,OAAO,SAAS,IAAI,mBAAmB,IAAI,QAAQ,GAAG,GAAG,CAAC;AAC5D,CAAC;AAVD,sDAUC"}
|
package/dist/helpers/index.d.ts
CHANGED
package/dist/helpers/index.js
CHANGED
|
@@ -10,5 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./auth-helpers"), exports);
|
|
13
14
|
__exportStar(require("./webhook-helpers"), exports);
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4-alpha.0",
|
|
4
4
|
"description": "ikas public node api client for store apps and private apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"semi": true,
|
|
48
48
|
"trailingComma": "all",
|
|
49
49
|
"singleQuote": true,
|
|
50
|
-
"printWidth":
|
|
50
|
+
"printWidth": 200,
|
|
51
51
|
"tabWidth": 2,
|
|
52
52
|
"bracketSpacing": true
|
|
53
53
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.DefaultMutations = void 0;
|
|
8
|
-
var graphql_request_1 = require("graphql-request");
|
|
9
|
-
var common_gql_1 = require("./common-gql");
|
|
10
|
-
exports.DefaultMutations = {
|
|
11
|
-
addCustomTimelineEntry: (0, graphql_request_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation AddCustomTimelineEntry($input: TimelineInput!) {\n addCustomTimelineEntry(input: $input)\n }\n "], ["\n mutation AddCustomTimelineEntry($input: TimelineInput!) {\n addCustomTimelineEntry(input: $input)\n }\n "]))),
|
|
12
|
-
addOrderInvoice: (0, graphql_request_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation AddOrderInvoice($input: AddOrderInvoiceInput!) {\n addOrderInvoice(input: $input) {\n id\n }\n }\n "], ["\n mutation AddOrderInvoice($input: AddOrderInvoiceInput!) {\n addOrderInvoice(input: $input) {\n id\n }\n }\n "]))),
|
|
13
|
-
bulkUpdateProducts: (0, graphql_request_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n mutation BulkUpdateProducts($input: [BulkUpdateProductsInput!]!) {\n bulkUpdateProducts(input: $input)\n }\n "], ["\n mutation BulkUpdateProducts($input: [BulkUpdateProductsInput!]!) {\n bulkUpdateProducts(input: $input)\n }\n "]))),
|
|
14
|
-
createMerchantAppPayment: (0, graphql_request_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation CreateMerchantAppPayment($input: MerchantAppPaymentInput!) {\n createMerchantAppPayment(input: $input) {\n appPaymentKey\n createdAt\n deleted\n id\n merchantPaymentUrl\n name\n paymentDate\n prices {\n period\n price\n }\n status\n storeAppId\n type\n updatedAt\n }\n }\n "], ["\n mutation CreateMerchantAppPayment($input: MerchantAppPaymentInput!) {\n createMerchantAppPayment(input: $input) {\n appPaymentKey\n createdAt\n deleted\n id\n merchantPaymentUrl\n name\n paymentDate\n prices {\n period\n price\n }\n status\n storeAppId\n type\n updatedAt\n }\n }\n "]))),
|
|
15
|
-
createOrderWithTransactions: (0, graphql_request_1.gql)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateOrderWithTransactions($input: CreateOrderWithTransactionsInput!) {\n createOrderWithTransactions(input: $input) ", "\n }"], ["\n mutation CreateOrderWithTransactions($input: CreateOrderWithTransactionsInput!) {\n createOrderWithTransactions(input: $input) ", "\n }"])), common_gql_1.ORDER_GQL),
|
|
16
|
-
deleteCategoryList: (0, graphql_request_1.gql)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n mutation DeleteCategoryList($idList: [String!]!) {\n deleteCategoryList(idList: $idList)\n }\n "], ["\n mutation DeleteCategoryList($idList: [String!]!) {\n deleteCategoryList(idList: $idList)\n }\n "]))),
|
|
17
|
-
deleteProductAttributeList: (0, graphql_request_1.gql)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n mutation DeleteProductAttributeList($idList: [String!]!) {\n deleteProductAttributeList(idList: $idList)\n }\n "], ["\n mutation DeleteProductAttributeList($idList: [String!]!) {\n deleteProductAttributeList(idList: $idList)\n }\n "]))),
|
|
18
|
-
deleteProductBrandList: (0, graphql_request_1.gql)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation DeleteProductBrandList($idList: [String!]!) {\n deleteProductBrandList(idList: $idList)\n }\n "], ["\n mutation DeleteProductBrandList($idList: [String!]!) {\n deleteProductBrandList(idList: $idList)\n }\n "]))),
|
|
19
|
-
deleteProductList: (0, graphql_request_1.gql)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n mutation DeleteProductList($idList: [String!]!) {\n deleteProductList(idList: $idList)\n }\n "], ["\n mutation DeleteProductList($idList: [String!]!) {\n deleteProductList(idList: $idList)\n }\n "]))),
|
|
20
|
-
deleteProductTagList: (0, graphql_request_1.gql)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n mutation DeleteProductTagList($idList: [String!]!) {\n deleteProductTagList(idList: $idList)\n }\n "], ["\n mutation DeleteProductTagList($idList: [String!]!) {\n deleteProductTagList(idList: $idList)\n }\n "]))),
|
|
21
|
-
deleteStorefrontJSScript: (0, graphql_request_1.gql)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n mutation DeleteStorefrontJSScript($input: [String!]!) {\n deleteStorefrontJSScript(storefrontIdList: $input)\n }\n "], ["\n mutation DeleteStorefrontJSScript($input: [String!]!) {\n deleteStorefrontJSScript(storefrontIdList: $input)\n }\n "]))),
|
|
22
|
-
deleteVariantTypeList: (0, graphql_request_1.gql)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n mutation DeleteVariantTypeList($idList: [String!]!) {\n deleteVariantTypeList(idList: $idList)\n }\n "], ["\n mutation DeleteVariantTypeList($idList: [String!]!) {\n deleteVariantTypeList(idList: $idList)\n }\n "]))),
|
|
23
|
-
fulfillOrder: (0, graphql_request_1.gql)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n mutation FulfillOrder($input: FulFillOrderInput!) {\n fulfillOrder(input: $input) ", "\n }"], ["\n mutation FulfillOrder($input: FulFillOrderInput!) {\n fulfillOrder(input: $input) ", "\n }"])), common_gql_1.ORDER_GQL),
|
|
24
|
-
refundOrderLine: (0, graphql_request_1.gql)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n mutation RefundOrderLine($input: OrderRefundInput!) {\n refundOrderLine(input: $input) ", "\n }"], ["\n mutation RefundOrderLine($input: OrderRefundInput!) {\n refundOrderLine(input: $input) ", "\n }"])), common_gql_1.ORDER_GQL),
|
|
25
|
-
saveCategory: (0, graphql_request_1.gql)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n mutation SaveCategory($input: CategoryInput!) {\n saveCategory(input: $input) ", "\n }"], ["\n mutation SaveCategory($input: CategoryInput!) {\n saveCategory(input: $input) ", "\n }"])), common_gql_1.CATEGORY_GQL),
|
|
26
|
-
saveProduct: (0, graphql_request_1.gql)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n mutation SaveProduct($input: ProductInput!) {\n saveProduct(input: $input) ", "\n }"], ["\n mutation SaveProduct($input: ProductInput!) {\n saveProduct(input: $input) ", "\n }"])), common_gql_1.PRODUCT_GQL),
|
|
27
|
-
saveProductAttribute: (0, graphql_request_1.gql)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n mutation SaveProductAttribute($input: ProductAttributeInput!) {\n saveProductAttribute(input: $input) {\n id\n createdAt\n updatedAt\n name\n deleted\n type\n description\n tableTemplate {\n rows {\n id\n name\n }\n columns {\n id\n name\n }\n }\n options {\n createdAt\n id\n name\n updatedAt\n }\n }\n }\n "], ["\n mutation SaveProductAttribute($input: ProductAttributeInput!) {\n saveProductAttribute(input: $input) {\n id\n createdAt\n updatedAt\n name\n deleted\n type\n description\n tableTemplate {\n rows {\n id\n name\n }\n columns {\n id\n name\n }\n }\n options {\n createdAt\n id\n name\n updatedAt\n }\n }\n }\n "]))),
|
|
28
|
-
saveProductBrand: (0, graphql_request_1.gql)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n mutation SaveProductBrand($productBrand: ProductBrandInput!) {\n saveProductBrand(input: $productBrand) {\n id\n createdAt\n updatedAt\n name\n imageId\n salesChannelIds\n orderType\n deleted\n metaData {\n id\n createdAt\n updatedAt\n slug\n pageTitle\n description\n targetType\n targetId\n redirectTo\n }\n }\n }\n "], ["\n mutation SaveProductBrand($productBrand: ProductBrandInput!) {\n saveProductBrand(input: $productBrand) {\n id\n createdAt\n updatedAt\n name\n imageId\n salesChannelIds\n orderType\n deleted\n metaData {\n id\n createdAt\n updatedAt\n slug\n pageTitle\n description\n targetType\n targetId\n redirectTo\n }\n }\n }\n "]))),
|
|
29
|
-
saveProductStockLocations: (0, graphql_request_1.gql)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n mutation SaveProductStockLocations($input: SaveStockLocationsInput!) {\n saveProductStockLocations(input: $input)\n }\n "], ["\n mutation SaveProductStockLocations($input: SaveStockLocationsInput!) {\n saveProductStockLocations(input: $input)\n }\n "]))),
|
|
30
|
-
saveProductTag: (0, graphql_request_1.gql)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n mutation SaveProductTag($productTag: ProductTagInput!) {\n saveProductTag(input: $productTag) {\n id\n createdAt\n updatedAt\n name\n deleted\n }\n }\n "], ["\n mutation SaveProductTag($productTag: ProductTagInput!) {\n saveProductTag(input: $productTag) {\n id\n createdAt\n updatedAt\n name\n deleted\n }\n }\n "]))),
|
|
31
|
-
saveSalesChannel: (0, graphql_request_1.gql)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n mutation SaveSalesChannel($input: SalesChannelInput!) {\n saveSalesChannel(input: $input) {\n createdAt\n deleted\n id\n name\n paymentGateways {\n id\n order\n }\n priceListId\n stockLocations {\n id\n order\n }\n type\n updatedAt\n }\n }\n "], ["\n mutation SaveSalesChannel($input: SalesChannelInput!) {\n saveSalesChannel(input: $input) {\n createdAt\n deleted\n id\n name\n paymentGateways {\n id\n order\n }\n priceListId\n stockLocations {\n id\n order\n }\n type\n updatedAt\n }\n }\n "]))),
|
|
32
|
-
saveStorefrontJSScript: (0, graphql_request_1.gql)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n mutation SaveStorefrontJSScript($input: StorefrontJSScriptInput!) {\n saveStorefrontJSScript(input: $input) {\n authorizedAppId\n createdAt\n deleted\n id\n isActive\n name\n scriptContent\n storeAppId\n storefrontId\n updatedAt\n }\n }\n "], ["\n mutation SaveStorefrontJSScript($input: StorefrontJSScriptInput!) {\n saveStorefrontJSScript(input: $input) {\n authorizedAppId\n createdAt\n deleted\n id\n isActive\n name\n scriptContent\n storeAppId\n storefrontId\n updatedAt\n }\n }\n "]))),
|
|
33
|
-
saveVariantType: (0, graphql_request_1.gql)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n mutation SaveVariantType($input: VariantTypeInput!) {\n saveVariantType(input: $input) {\n id\n deleted\n createdAt\n updatedAt\n name\n selectionType\n values {\n colorCode\n createdAt\n id\n name\n thumbnailImageId\n updatedAt\n }\n }\n }\n "], ["\n mutation SaveVariantType($input: VariantTypeInput!) {\n saveVariantType(input: $input) {\n id\n deleted\n createdAt\n updatedAt\n name\n selectionType\n values {\n colorCode\n createdAt\n id\n name\n thumbnailImageId\n updatedAt\n }\n }\n }\n "]))),
|
|
34
|
-
saveWebhook: (0, graphql_request_1.gql)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n mutation SaveWebhook($input: WebhookInput!) {\n saveWebhook(input: $input) {\n id\n createdAt\n updatedAt\n deleted\n scope\n endpoint\n }\n }\n "], ["\n mutation SaveWebhook($input: WebhookInput!) {\n saveWebhook(input: $input) {\n id\n createdAt\n updatedAt\n deleted\n scope\n endpoint\n }\n }\n "]))),
|
|
35
|
-
updateOrderAddresses: (0, graphql_request_1.gql)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n mutation UpdateOrderAddresses($input: UpdateOrderAddressesInput!) {\n updateOrderAddresses(input: $input) ", "\n }"], ["\n mutation UpdateOrderAddresses($input: UpdateOrderAddressesInput!) {\n updateOrderAddresses(input: $input) ", "\n }"])), common_gql_1.ORDER_GQL),
|
|
36
|
-
updateOrderPackageStatus: (0, graphql_request_1.gql)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n mutation UpdateOrderPackageStatus($input: UpdateOrderPackageStatusInput!) {\n updateOrderPackageStatus(input: $input) ", "\n }"], ["\n mutation UpdateOrderPackageStatus($input: UpdateOrderPackageStatusInput!) {\n updateOrderPackageStatus(input: $input) ", "\n }"])), common_gql_1.ORDER_GQL),
|
|
37
|
-
updateProductSalesChannelStatus: (0, graphql_request_1.gql)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n mutation UpdateProductSalesChannelStatus($input: [UpdateProductSalesChannelStatusInput!]!) {\n updateProductSalesChannelStatus(input: $input)\n }\n "], ["\n mutation UpdateProductSalesChannelStatus($input: [UpdateProductSalesChannelStatusInput!]!) {\n updateProductSalesChannelStatus(input: $input)\n }\n "]))),
|
|
38
|
-
};
|
|
39
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27;
|
|
40
|
-
//# sourceMappingURL=mutation-gql.js.map
|
|
@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AAa,EAAE,iCAAiC,IAAG,EAAC;;;KACnJ;IACH,oBAAC;AAAD,CAAC,AA1JD,IA0JC;AA1JY,sCAAa"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.DefaultQueries = void 0;
|
|
8
|
-
var graphql_request_1 = require("graphql-request");
|
|
9
|
-
var common_gql_1 = require("./common-gql");
|
|
10
|
-
exports.DefaultQueries = {
|
|
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
|
-
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 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
|
-
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
|
-
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
|
-
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),
|
|
17
|
-
listMerchantAppPayment: (0, graphql_request_1.gql)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query ListMerchantAppPayment($id: StringFilterInput, $pagination: PaginationInput) {\n listMerchantAppPayment(id: $id, pagination: $pagination) {\n count\n data {\n appPaymentKey\n createdAt\n deleted\n id\n merchantPaymentUrl\n name\n paymentDate\n prices {\n period\n price\n }\n status\n storeAppId\n type\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query ListMerchantAppPayment($id: StringFilterInput, $pagination: PaginationInput) {\n listMerchantAppPayment(id: $id, pagination: $pagination) {\n count\n data {\n appPaymentKey\n createdAt\n deleted\n id\n merchantPaymentUrl\n name\n paymentDate\n prices {\n period\n price\n }\n status\n storeAppId\n type\n updatedAt\n }\n hasNext\n limit\n page\n }\n }\n "]))),
|
|
18
|
-
listOrder: (0, graphql_request_1.gql)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query ListOrder($pagination: PaginationInput, $id: StringFilterInput) {\n listOrder(pagination: $pagination, id: $id) {\n count\n data ", "\n hasNext\n limit\n page\n }\n }\n "], ["\n query ListOrder($pagination: PaginationInput, $id: StringFilterInput) {\n listOrder(pagination: $pagination, id: $id) {\n count\n data ", "\n hasNext\n limit\n page\n }\n }\n "])), common_gql_1.ORDER_GQL),
|
|
19
|
-
listPriceList: (0, graphql_request_1.gql)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query ListPriceList($id: StringFilterInput) {\n listPriceList(id: $id) {\n id\n createdAt\n updatedAt\n deleted\n currency\n name\n }\n }\n "], ["\n query ListPriceList($id: StringFilterInput) {\n listPriceList(id: $id) {\n id\n createdAt\n updatedAt\n deleted\n currency\n name\n }\n }\n "]))),
|
|
20
|
-
listProduct: (0, graphql_request_1.gql)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n query ListProduct($pagination: PaginationInput, $id: StringFilterInput, $sku: StringFilterInput, $barcodeList: StringFilterInput) {\n listProduct(pagination: $pagination, id: $id, sku: $sku, barcodeList: $barcodeList) {\n count\n hasNext\n limit\n page\n data ", "\n }\n }\n "], ["\n query ListProduct($pagination: PaginationInput, $id: StringFilterInput, $sku: StringFilterInput, $barcodeList: StringFilterInput) {\n listProduct(pagination: $pagination, id: $id, sku: $sku, barcodeList: $barcodeList) {\n count\n hasNext\n limit\n page\n data ", "\n }\n }\n "])), common_gql_1.PRODUCT_GQL),
|
|
21
|
-
listProductAttribute: (0, graphql_request_1.gql)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n query ListProductAttributes($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput) {\n listProductAttribute(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name) {\n id\n createdAt\n updatedAt\n name\n deleted\n type\n description\n tableTemplate {\n rows {\n id\n name\n }\n columns {\n id\n name\n }\n }\n options {\n createdAt\n id\n name\n updatedAt\n }\n }\n }\n "], ["\n query ListProductAttributes($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput) {\n listProductAttribute(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name) {\n id\n createdAt\n updatedAt\n name\n deleted\n type\n description\n tableTemplate {\n rows {\n id\n name\n }\n columns {\n id\n name\n }\n }\n options {\n createdAt\n id\n name\n updatedAt\n }\n }\n }\n "]))),
|
|
22
|
-
listProductBrand: (0, graphql_request_1.gql)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n query ListProductBrand($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $search: String, $updatedAt: DateFilterInput) {\n listProductBrand(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name, search: $search) {\n id\n createdAt\n updatedAt\n name\n imageId\n salesChannelIds\n orderType\n deleted\n metaData {\n id\n createdAt\n updatedAt\n slug\n pageTitle\n description\n targetType\n targetId\n redirectTo\n }\n }\n }\n "], ["\n query ListProductBrand($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $search: String, $updatedAt: DateFilterInput) {\n listProductBrand(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name, search: $search) {\n id\n createdAt\n updatedAt\n name\n imageId\n salesChannelIds\n orderType\n deleted\n metaData {\n id\n createdAt\n updatedAt\n slug\n pageTitle\n description\n targetType\n targetId\n redirectTo\n }\n }\n }\n "]))),
|
|
23
|
-
listProductStockLocation: (0, graphql_request_1.gql)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n query ListProductStockLocation($variantId: StringFilterInput, $productId: StringFilterInput, $pagination: PaginationInput) {\n listProductStockLocation(variantId: $variantId, productId: $productId, pagination: $pagination) {\n count\n data {\n createdAt\n deleted\n id\n productId\n stockCount\n stockLocationId\n updatedAt\n variantId\n }\n hasNext\n limit\n page\n }\n }\n "], ["\n query ListProductStockLocation($variantId: StringFilterInput, $productId: StringFilterInput, $pagination: PaginationInput) {\n listProductStockLocation(variantId: $variantId, productId: $productId, pagination: $pagination) {\n count\n data {\n createdAt\n deleted\n id\n productId\n stockCount\n stockLocationId\n updatedAt\n variantId\n }\n hasNext\n limit\n page\n }\n }\n "]))),
|
|
24
|
-
listProductTag: (0, graphql_request_1.gql)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n query ListProductTag($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput) {\n listProductTag(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name) {\n id\n createdAt\n updatedAt\n name\n deleted\n }\n }\n "], ["\n query ListProductTag($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput) {\n listProductTag(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name) {\n id\n createdAt\n updatedAt\n name\n deleted\n }\n }\n "]))),
|
|
25
|
-
listSalesChannel: (0, graphql_request_1.gql)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n query ListSalesChannel($id: StringFilterInput) {\n listSalesChannel(id: $id) {\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 ListSalesChannel($id: StringFilterInput) {\n listSalesChannel(id: $id) {\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 "]))),
|
|
26
|
-
listStockLocation: (0, graphql_request_1.gql)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n query ListStockLocation($id: StringFilterInput) {\n listStockLocation(id: $id) {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n address {\n address\n country {\n id\n name\n code\n }\n state {\n id\n name\n code\n }\n city {\n id\n name\n code\n }\n district {\n id\n name\n code\n }\n postalCode\n phone\n }\n }\n }\n "], ["\n query ListStockLocation($id: StringFilterInput) {\n listStockLocation(id: $id) {\n id\n createdAt\n updatedAt\n deleted\n name\n type\n address {\n address\n country {\n id\n name\n code\n }\n state {\n id\n name\n code\n }\n city {\n id\n name\n code\n }\n district {\n id\n name\n code\n }\n postalCode\n phone\n }\n }\n }\n "]))),
|
|
27
|
-
listStorefront: (0, graphql_request_1.gql)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n query ListStorefront($id: StringFilterInput) {\n listStorefront(id: $id) {\n id\n name\n createdAt\n updatedAt\n deleted\n }\n }\n "], ["\n query ListStorefront($id: StringFilterInput) {\n listStorefront(id: $id) {\n id\n name\n createdAt\n updatedAt\n deleted\n }\n }\n "]))),
|
|
28
|
-
listStorefrontJSScript: (0, graphql_request_1.gql)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n query ListStorefrontJSScript($id: StringFilterInput) {\n listStorefrontJSScript(id: $id) {\n authorizedAppId\n createdAt\n deleted\n id\n isActive\n name\n scriptContent\n storeAppId\n storefrontId\n updatedAt\n }\n }\n "], ["\n query ListStorefrontJSScript($id: StringFilterInput) {\n listStorefrontJSScript(id: $id) {\n authorizedAppId\n createdAt\n deleted\n id\n isActive\n name\n scriptContent\n storeAppId\n storefrontId\n updatedAt\n }\n }\n "]))),
|
|
29
|
-
listVariantType: (0, graphql_request_1.gql)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n query ListVariantTypes($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput) {\n listVariantType(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name) {\n id\n deleted\n createdAt\n updatedAt\n name\n selectionType\n values {\n colorCode\n createdAt\n id\n name\n thumbnailImageId\n updatedAt\n }\n }\n }\n "], ["\n query ListVariantTypes($id: StringFilterInput, $includeDeleted: Boolean, $name: StringFilterInput, $updatedAt: DateFilterInput) {\n listVariantType(updatedAt: $updatedAt, includeDeleted: $includeDeleted, id: $id, name: $name) {\n id\n deleted\n createdAt\n updatedAt\n name\n selectionType\n values {\n colorCode\n createdAt\n id\n name\n thumbnailImageId\n updatedAt\n }\n }\n }\n "]))),
|
|
30
|
-
listWebhook: (0, graphql_request_1.gql)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n query ListWebhook {\n listWebhook {\n id\n createdAt\n updatedAt\n deleted\n scope\n endpoint\n }\n }\n "], ["\n query ListWebhook {\n listWebhook {\n id\n createdAt\n updatedAt\n deleted\n scope\n endpoint\n }\n }\n "]))),
|
|
31
|
-
searchProducts: (0, graphql_request_1.gql)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n query SearchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n data\n count\n totalCount\n page\n limit\n }\n }\n "], ["\n query SearchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n data\n count\n totalCount\n page\n limit\n }\n }\n "]))),
|
|
32
|
-
listCity: (0, graphql_request_1.gql)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n query ListCity($id: StringFilterInput, $countryId: StringFilterInput, $stateId: StringFilterInput, $search: String) {\n listCity(id: $id, countryId: $countryId, stateId: $stateId, search: $search) {\n id\n name\n uName\n cityCode\n latitude\n longitude\n order\n stateId\n countryId\n }\n }\n "], ["\n query ListCity($id: StringFilterInput, $countryId: StringFilterInput, $stateId: StringFilterInput, $search: String) {\n listCity(id: $id, countryId: $countryId, stateId: $stateId, search: $search) {\n id\n name\n uName\n cityCode\n latitude\n longitude\n order\n stateId\n countryId\n }\n }\n "]))),
|
|
33
|
-
listCountry: (0, graphql_request_1.gql)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n query ListCountry($id: StringFilterInput, $iso2: StringFilterInput, $iso3: StringFilterInput, $search: String) {\n listCountry(id: $id, iso2: $iso2, iso3: $iso3, search: $search) {\n id\n name\n uName\n locationTranslations {\n en\n tr\n }\n iso3\n iso2\n phoneCode\n capital\n currency\n native\n region\n subregion\n emoji\n emojiString\n }\n }\n "], ["\n query ListCountry($id: StringFilterInput, $iso2: StringFilterInput, $iso3: StringFilterInput, $search: String) {\n listCountry(id: $id, iso2: $iso2, iso3: $iso3, search: $search) {\n id\n name\n uName\n locationTranslations {\n en\n tr\n }\n iso3\n iso2\n phoneCode\n capital\n currency\n native\n region\n subregion\n emoji\n emojiString\n }\n }\n "]))),
|
|
34
|
-
listDistrict: (0, graphql_request_1.gql)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n query ListDistrict(\n $id: StringFilterInput\n $cityId: StringFilterInput\n $countryId: StringFilterInput\n $stateId: StringFilterInput\n $search: String\n ) {\n listDistrict(id: $id, cityId: $cityId, countryId: $countryId, stateId: $stateId, search: $search) {\n id\n name\n uName\n latitude\n longitude\n order\n cityId\n stateId\n countryId\n }\n }\n "], ["\n query ListDistrict(\n $id: StringFilterInput\n $cityId: StringFilterInput\n $countryId: StringFilterInput\n $stateId: StringFilterInput\n $search: String\n ) {\n listDistrict(id: $id, cityId: $cityId, countryId: $countryId, stateId: $stateId, search: $search) {\n id\n name\n uName\n latitude\n longitude\n order\n cityId\n stateId\n countryId\n }\n }\n "]))),
|
|
35
|
-
listState: (0, graphql_request_1.gql)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n query ListState($id: StringFilterInput, $countryId: StringFilterInput, $search: String) {\n listState(id: $id, countryId: $countryId, search: $search) {\n id\n name\n uName\n stateCode\n countryId\n }\n }\n "], ["\n query ListState($id: StringFilterInput, $countryId: StringFilterInput, $search: String) {\n listState(id: $id, countryId: $countryId, search: $search) {\n id\n name\n uName\n stateCode\n countryId\n }\n }\n "]))),
|
|
36
|
-
listTown: (0, graphql_request_1.gql)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n query ListTown($id: StringFilterInput, $districtId: StringFilterInput, $search: String) {\n listTown(id: $id, districtId: $districtId, search: $search) {\n id\n name\n uName\n order\n districtId\n }\n }\n "], ["\n query ListTown($id: StringFilterInput, $districtId: StringFilterInput, $search: String) {\n listTown(id: $id, districtId: $districtId, search: $search) {\n id\n name\n uName\n order\n districtId\n }\n }\n "]))),
|
|
37
|
-
listProductOptionSet: (0, graphql_request_1.gql)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n query ListProductOptionSet($idArg: StringFilterInput) {\n listProductOptionSet(id: $idArg) {\n deleted\n id\n name\n options {\n dateSettings {\n max\n min\n }\n deleted\n fileSettings {\n allowedExtensions\n maxQuantity\n minQuantity\n }\n id\n isOptional\n name\n optionalText\n requiredOptionId\n requiredOptionValueIds\n order\n price\n selectSettings {\n maxSelect\n minSelect\n type\n values {\n deleted\n id\n order\n price\n value\n thumbnailImageId\n colorCode\n }\n }\n textSettings {\n max\n min\n }\n type\n }\n translations {\n locale\n options {\n id\n name\n optionalText\n values {\n id\n value\n }\n }\n }\n }\n }\n "], ["\n query ListProductOptionSet($idArg: StringFilterInput) {\n listProductOptionSet(id: $idArg) {\n deleted\n id\n name\n options {\n dateSettings {\n max\n min\n }\n deleted\n fileSettings {\n allowedExtensions\n maxQuantity\n minQuantity\n }\n id\n isOptional\n name\n optionalText\n requiredOptionId\n requiredOptionValueIds\n order\n price\n selectSettings {\n maxSelect\n minSelect\n type\n values {\n deleted\n id\n order\n price\n value\n thumbnailImageId\n colorCode\n }\n }\n textSettings {\n max\n min\n }\n type\n }\n translations {\n locale\n options {\n id\n name\n optionalText\n values {\n id\n value\n }\n }\n }\n }\n }\n "]))),
|
|
38
|
-
};
|
|
39
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27;
|
|
40
|
-
//# sourceMappingURL=query-gql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,+mCAsDtB,IAAA;IACD,WAAW,MAAE,qBAAG,g2BAAA,4xBA6Cf,IAAA;IACD,eAAe,MAAE,qBAAG,6YAAA,yUAoBnB,IAAA;IACD,YAAY,MAAE,qBAAG,idAAA,6XAS8H,EAAY,cAE1J,KAF8I,yBAAY,CAE1J;IACD,YAAY,MAAE,qBAAG,8UAAA,qLAGJ,EAAY,mFAOxB,KAPY,yBAAY,CAOxB;IACD,sBAAsB,MAAE,qBAAG,unBAAA,mjBA0B1B,IAAA;IACD,SAAS,MAAE,qBAAG,4SAAA,kKAID,EAAS,oEAMrB,KANY,sBAAS,CAMrB;IACD,aAAa,MAAE,qBAAG,gRAAA,4MAWjB,IAAA;IACD,WAAW,MAAE,qBAAG,kZAAA,oTAOH,EAAW,sBAGvB,KAHY,wBAAW,CAGvB;IACD,oBAAoB,MAAE,qBAAG,utBAAA,ipBA4BxB,IAAA;IACD,gBAAgB,MAAE,qBAAG,8sBAAA,woBAwBpB,IAAA;IACD,wBAAwB,MAAE,qBAAG,qkBAAA,+fAmB5B,IAAA;IACD,cAAc,MAAE,qBAAG,wZAAA,kVAUlB,IAAA;IACD,gBAAgB,MAAE,qBAAG,kbAAA,4WAoBpB,IAAA;IACD,iBAAiB,MAAE,qBAAG,ksBAAA,4nBAoCrB,IAAA;IACD,cAAc,MAAE,qBAAG,kQAAA,4LAUlB,IAAA;IACD,sBAAsB,MAAE,qBAAG,8XAAA,wTAe1B,IAAA;IACD,eAAe,MAAE,qBAAG,wkBAAA,kgBAmBnB,IAAA;IACD,WAAW,MAAE,qBAAG,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;IACD,oBAAoB,MAAE,qBAAG,mvCAAA,6qCA2DxB,IAAA;CACF,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ikasAdminGraphQLAPIClient } from './admin-client';
|
|
2
|
-
import { Query, QuerylistCategoryArgs, QuerylistCustomerArgs, QuerylistMerchantAppPaymentArgs, QuerylistOrderArgs, QuerylistPriceListArgs, QuerylistProductArgs, QuerylistProductAttributeArgs, QuerylistProductBrandArgs, QuerylistProductStockLocationArgs, QuerylistProductTagArgs, QuerylistSalesChannelArgs, QuerylistStockLocationArgs, QuerylistStorefrontArgs, QuerylistStorefrontJSScriptArgs, QuerylistVariantTypeArgs, QuerysearchProductsArgs, QuerylistCityArgs, QuerylistCountryArgs, QuerylistDistrictArgs, QuerylistStateArgs, QuerylistTownArgs } from './generated';
|
|
3
|
-
import { APIResult, QueryOptions } from '../base';
|
|
4
|
-
declare type Result<T> = APIResult<Partial<T>>;
|
|
5
|
-
declare type Queries = {
|
|
6
|
-
[p in keyof Omit<Query, '__typename' | 'getImageUploadUrl'>]: (options: QueryOptions<any>) => Promise<Result<Query[p]>>;
|
|
7
|
-
};
|
|
8
|
-
export declare class AdminQuery implements Queries {
|
|
9
|
-
client: ikasAdminGraphQLAPIClient<any>;
|
|
10
|
-
constructor(client: ikasAdminGraphQLAPIClient<any>);
|
|
11
|
-
getAuthorizedApp(options: QueryOptions<undefined>): Promise<Result<Query['getAuthorizedApp']>>;
|
|
12
|
-
getMerchant(options: QueryOptions<undefined>): Promise<Result<Query['getMerchant']>>;
|
|
13
|
-
getMerchantLicence(options: QueryOptions<undefined>): Promise<Result<Query['getMerchantLicence']>>;
|
|
14
|
-
getSalesChannel(options: QueryOptions<undefined>): Promise<Result<Query['getSalesChannel']>>;
|
|
15
|
-
listCategory(options: QueryOptions<QuerylistCategoryArgs>): Promise<Result<Query['listCategory']>>;
|
|
16
|
-
listCustomer(options: QueryOptions<QuerylistCustomerArgs>): Promise<Result<Query['listCustomer']>>;
|
|
17
|
-
listMerchantAppPayment(options: QueryOptions<QuerylistMerchantAppPaymentArgs>): Promise<Result<Query['listMerchantAppPayment']>>;
|
|
18
|
-
listOrder(options: QueryOptions<QuerylistOrderArgs>): Promise<Result<Query['listOrder']>>;
|
|
19
|
-
listPriceList(options: QueryOptions<QuerylistPriceListArgs>): Promise<Result<Query['listPriceList']>>;
|
|
20
|
-
listProduct(options: QueryOptions<QuerylistProductArgs>): Promise<Result<Query['listProduct']>>;
|
|
21
|
-
listProductAttribute(options: QueryOptions<QuerylistProductAttributeArgs>): Promise<Result<Query['listProductAttribute']>>;
|
|
22
|
-
listProductBrand(options: QueryOptions<QuerylistProductBrandArgs>): Promise<Result<Query['listProductBrand']>>;
|
|
23
|
-
listProductStockLocation(options: QueryOptions<QuerylistProductStockLocationArgs>): Promise<Result<Query['listProductStockLocation']>>;
|
|
24
|
-
listProductTag(options: QueryOptions<QuerylistProductTagArgs>): Promise<Result<Query['listProductTag']>>;
|
|
25
|
-
listSalesChannel(options: QueryOptions<QuerylistSalesChannelArgs>): Promise<Result<Query['listSalesChannel']>>;
|
|
26
|
-
listStockLocation(options: QueryOptions<QuerylistStockLocationArgs>): Promise<Result<Query['listStockLocation']>>;
|
|
27
|
-
listStorefront(options: QueryOptions<QuerylistStorefrontArgs>): Promise<Result<Query['listStorefront']>>;
|
|
28
|
-
listStorefrontJSScript(options: QueryOptions<QuerylistStorefrontJSScriptArgs>): Promise<Result<Query['listStorefrontJSScript']>>;
|
|
29
|
-
listVariantType(options: QueryOptions<QuerylistVariantTypeArgs>): Promise<Result<Query['listVariantType']>>;
|
|
30
|
-
listWebhook(options: QueryOptions<undefined>): Promise<Result<Query['listWebhook']>>;
|
|
31
|
-
searchProducts(options: QueryOptions<QuerysearchProductsArgs>): Promise<Result<Query['searchProducts']>>;
|
|
32
|
-
listCity(options: QueryOptions<QuerylistCityArgs>): Promise<Result<Query['listCity']>>;
|
|
33
|
-
listCountry(options: QueryOptions<QuerylistCountryArgs>): Promise<Result<Query['listCountry']>>;
|
|
34
|
-
listDistrict(options: QueryOptions<QuerylistDistrictArgs>): Promise<Result<Query['listDistrict']>>;
|
|
35
|
-
listState(options: QueryOptions<QuerylistStateArgs>): Promise<Result<Query['listState']>>;
|
|
36
|
-
listTown(options: QueryOptions<QuerylistTownArgs>): Promise<Result<Query['listTown']>>;
|
|
37
|
-
listProductOptionSet(options: QueryOptions<any>): Promise<Result<Query['listProductOptionSet']>>;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/api/admin/query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;IAGE,oBAAY,MAAsC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEK,qCAAgB,GAAtB,UAAuB,OAAgC;;;gBACrD,sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAA0C,OAAO,KAAE,aAAa,EAAE,kBAAkB,IAAG,EAAC;;;KACjH;IAEK,gCAAW,GAAjB,UAAkB,OAAgC;;;gBAChD,sBAAO,IAAI,CAAC,MAAM,CAAC,KAAK,uBAAqC,OAAO,KAAE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