@scryme/sdk 10.1.40 → 10.1.42
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/{base-gdko1ojI.d.mts → base-CoqrR8Yg.d.mts} +288 -565
- package/dist/{base-gdko1ojI.d.ts → base-CoqrR8Yg.d.ts} +288 -565
- package/dist/client.d.mts +3 -1
- package/dist/client.d.ts +3 -1
- package/dist/client.js +72 -71
- package/dist/client.mjs +3255 -4
- package/dist/index.d.mts +285 -288
- package/dist/index.d.ts +285 -288
- package/dist/index.js +71 -66
- package/dist/index.mjs +4108 -71
- package/dist/server.d.mts +3 -1
- package/dist/server.d.ts +3 -1
- package/dist/server.js +72 -72
- package/dist/server.mjs +3005 -4
- package/package.json +2 -2
- package/dist/chunk-TNAWGB5N.mjs +0 -4175
package/dist/client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { f as CustomerResponseDto, b as ProductResponseDto, S as ServiceCatalogResponseDto, a3 as CartItemDto, C as CartResponseDto, bk as CustomerSessionDto, a9 as CatalogModule, bC as InventoryModule, c0 as OrdersModule, a0 as CRMModule, c2 as POSModule, q as AccountingModule, bK as LoyaltyModule, bW as MembersModule, y as AdminModule, e2 as WebhooksModule, a2 as CartControllerGetCartParams, u as AddToCartDto, cG as RemoveFromCartDto, a1 as CartControllerClearCartParams, dx as UpdateCustomerDto, w as AddressDto, cC as RegisterCustomerDto, bi as CustomerAuthResponseDto, al as CreateBookingDto, cS as ServiceBookingItemDto, d6 as ServicesUpdateBookingStatusBodyStatus, aj as CompleteBookingDto, cI as RequestOtpDto, e1 as VerifyOtpDto, cl as PublicBookingDto, N as AuthModule, a as AuthExchangeToken201 } from './base-CoqrR8Yg.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Defines a storage contract for persisting authentication tokens and session data.
|
|
@@ -118,6 +118,8 @@ declare class ScrymeClientSDK<TProduct = ProductResponseDto, TService = ServiceC
|
|
|
118
118
|
inventory: InventoryModule;
|
|
119
119
|
/** Cart management, sales order orchestration, checkout processing, and payments submodule. */
|
|
120
120
|
orders: OrdersModule;
|
|
121
|
+
/** Alias for orders & B2B operations submodule. */
|
|
122
|
+
b2b: OrdersModule;
|
|
121
123
|
/** Custom fields, relationships, note logging, associations, and CRM timeline submodule. */
|
|
122
124
|
crm: CRMModule;
|
|
123
125
|
/** Cash flow register, sale processing, terminal synchronization, and device provision submodule. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { f as CustomerResponseDto, b as ProductResponseDto, S as ServiceCatalogResponseDto, a3 as CartItemDto, C as CartResponseDto, bk as CustomerSessionDto, a9 as CatalogModule, bC as InventoryModule, c0 as OrdersModule, a0 as CRMModule, c2 as POSModule, q as AccountingModule, bK as LoyaltyModule, bW as MembersModule, y as AdminModule, e2 as WebhooksModule, a2 as CartControllerGetCartParams, u as AddToCartDto, cG as RemoveFromCartDto, a1 as CartControllerClearCartParams, dx as UpdateCustomerDto, w as AddressDto, cC as RegisterCustomerDto, bi as CustomerAuthResponseDto, al as CreateBookingDto, cS as ServiceBookingItemDto, d6 as ServicesUpdateBookingStatusBodyStatus, aj as CompleteBookingDto, cI as RequestOtpDto, e1 as VerifyOtpDto, cl as PublicBookingDto, N as AuthModule, a as AuthExchangeToken201 } from './base-CoqrR8Yg.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Defines a storage contract for persisting authentication tokens and session data.
|
|
@@ -118,6 +118,8 @@ declare class ScrymeClientSDK<TProduct = ProductResponseDto, TService = ServiceC
|
|
|
118
118
|
inventory: InventoryModule;
|
|
119
119
|
/** Cart management, sales order orchestration, checkout processing, and payments submodule. */
|
|
120
120
|
orders: OrdersModule;
|
|
121
|
+
/** Alias for orders & B2B operations submodule. */
|
|
122
|
+
b2b: OrdersModule;
|
|
121
123
|
/** Custom fields, relationships, note logging, associations, and CRM timeline submodule. */
|
|
122
124
|
crm: CRMModule;
|
|
123
125
|
/** Cash flow register, sale processing, terminal synchronization, and device provision submodule. */
|
package/dist/client.js
CHANGED
|
@@ -35,7 +35,7 @@ __export(client_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(client_exports);
|
|
37
37
|
var import_react = require("react");
|
|
38
|
-
var
|
|
38
|
+
var import_axios2 = __toESM(require("axios"));
|
|
39
39
|
|
|
40
40
|
// src/generated/scryme.ts
|
|
41
41
|
var import_axios = __toESM(require("axios"));
|
|
@@ -2007,6 +2007,72 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
2007
2007
|
return { servicesCreateCategory, servicesGetCategories, servicesUpdateCategory, servicesDeleteCategory, servicesCreateService, servicesGetServices, servicesGetCurrentMemberShifts, servicesGetShifts, servicesGetService, servicesUpdateService, servicesGetAvailability, servicesDeleteService, servicesCreateResource, servicesGetResources, servicesUpdateResource, servicesDeleteResource, servicesCreateBooking, servicesGetBookings, servicesGetBooking, servicesUpdateBookingStatus, servicesCompleteBooking, servicesCancelBookingSeries, servicesCreateShift, servicesGetStaffShifts, servicesAddBreak, servicesRegisterCustomerApp, servicesGetUtilization, servicesGetPerformance, servicesGetFunnel, publicServicesListServices, publicServicesGetCategories, publicServicesGetService, publicServicesGetAvailability, publicServicesRequestOtp, publicServicesVerifyOtp, publicServicesCreatePublicBooking, inventoryVerifyIntegrity, inventoryFixIntegrity, inventoryGetInventory, inventoryTraceBatch, inventorySplitBatch, inventoryMergeBatches, inventoryCreateAssembly, inventoryCompleteAssembly, inventoryRequestAdjustment, inventoryGetAdjustments, inventoryApproveAdjustment, inventoryRejectAdjustment, inventoryGetLeadTime, inventoryGetWasteAnalysis, inventoryCheckB2BAvailability, inventoryUnpackBatch, inventoryScanUnpackBatch, inventoryQuickStockInquiry, expenseControllerCreateExpense, expenseControllerGetExpenses, expenseControllerGetExpenseCategories, expenseControllerGetExpense, pettyCashControllerCreateFund, pettyCashControllerGetFunds, pettyCashControllerGetFund, pettyCashControllerTopUpFund, pettyCashControllerGetFundTransactions, utilityAccountControllerCreateAccount, utilityAccountControllerGetAccounts, utilityAccountControllerGetAccount, accountingInitialize, accountingGetProfitLoss, accountingGetBalanceSheet, accountingGetCashFlow, accountingGetTaxSummary, invoiceControllerCreateInvoice, invoiceControllerGetInvoices, invoiceControllerGetInvoice, invoiceControllerUpdateInvoice, invoiceControllerDeleteInvoice, invoiceControllerFinalizeInvoice, invoiceControllerGetTemplates, invoiceControllerCreateTemplate, invoiceControllerGetConfig, invoiceControllerUpdateConfig, publicInvoiceControllerDownloadInvoice, publicInvoiceControllerDownloadInvoiceByTransaction, publicInvoiceControllerDownloadReceipt, publicInvoiceControllerGeneratePublicLink, authExchangeToken, authCreateOAuthClient, authListOAuthClients, authGetOAuthClient, authUpdateOAuthClient, authDeleteOAuthClient, authControllerHandleOAuth2, adminControllerGetStats, adminControllerListOrganizations, adminControllerCreateOrganization, adminControllerGetOrganizationDetails, adminControllerUpdateOrganization, adminControllerDeleteOrganization, adminControllerSuspendOrganization, adminControllerReactivateOrganization, adminControllerGetEffectiveQuota, adminControllerSetQuotaOverrides, adminControllerListMembers, adminControllerListUsers, adminControllerBanUser, adminControllerUnbanUser, adminControllerListConnectedApps, adminControllerListSystemLogs, adminControllerListGlobalSettings, adminControllerSetGlobalSetting, adminControllerDeleteGlobalSetting, adminControllerListTiers, adminControllerDefineTier, adminControllerDeleteTier, adminControllerGetOrganizationSubscription, adminControllerUpdateOrganizationSubscription, adminControllerListSystemPayments, adminControllerRecordCustomPayment, adminControllerListIntegrationDefinitions, adminControllerCreateIntegrationDefinition, adminControllerUpdateIntegrationDefinition, adminControllerDeleteIntegrationDefinition, adminControllerListActiveOrganizationIntegrations, webhooksCreate, webhooksList, webhooksDelete, catalogGetProducts, catalogCreateProduct, catalogGetProduct, catalogGetServices, catalogUpdateProduct, catalogUpdateSupplierVariant, catalogGetPriceChangeRequests, catalogReviewPriceChangeRequest, catalogCreateReview, catalogUpdateReview, catalogDeleteReview, customersGetCustomers, customersRegister, customerRegister, customersLogin, customersRefreshSession, customersGetCurrentSession, customersGetSessions, customersRevokeAllSessions, customersRevokeSession, customersUpdate, customersGetCustomerById, customersDelete, customersGetAddresses, customersAddAddress, businessAccountControllerCreate, businessAccountControllerGetOne, crmControllerCreateRecord, crmControllerGetRecord, crmControllerUpdateRecord, crmControllerCreateNote, crmControllerGetRecordNotes, crmControllerCreateActivity, crmControllerGetTimeline, crmControllerCreateObject, crmControllerListObjects, crmControllerCreateField, crmControllerListFields, crmControllerCreateRelationship, crmControllerListRelationships, crmControllerCreateAssociation, crmControllerListRecordAssociations, loyaltyRedeemReward, loyaltyGetCustomerStatus, loyaltyValidateVoucher, ordersCreateOrder, ordersGetOrders, ordersUpdateStatus, ordersRequestB2BQuote, ordersConvertQuoteToOrder, paymentsCheckout, paymentsControllerHandleStkCallback, pOSProvision, pOSLogin, pOSGetMe, pOSProcessSale, pOSSync, pOSGetTransactions, pOSRegisterPettyCash, pOSGetPettyCashFunds, pOSGetPettyCashTransactions, pOSCreatePairingSession, pOSGetPairingSessionStatus, pOSAuthorizePairingSession, membersControllerGetMembers, membersControllerCreateMember, membersControllerGetMember, membersControllerUpdateMember, membersControllerDeleteMember, membersControllerGetMemberActivity, membersControllerUpdateStatus, membersControllerAdminCheckOut, terminalMembersControllerLogin, invitationsList, invitationsCreate, invitationsRevoke, invitationsAccept, roleManagementControllerGetCustomRoles, roleManagementControllerCreateCustomRole, roleManagementControllerUpdateCustomRole, roleManagementControllerDeleteCustomRole, roleManagementControllerGetPermissionSets, roleManagementControllerCreatePermissionSet, roleManagementControllerGetRoleGroups, roleManagementControllerCreateRoleGroup, roleManagementControllerAssignRoles, roleManagementControllerRemoveRoles, departmentsList, departmentsCreate, departmentsGet, departmentsUpdate, departmentsDelete, departmentsAddMember, departmentsRemoveMember, attendanceControllerGetLogs, attendanceControllerCheckIn, attendanceControllerCheckOut, attendanceControllerGetMyStatus, attendanceControllerGetStatus, announcementControllerBroadcastAnnouncement, cartControllerGetCart, cartControllerClearCart, cartControllerAddToCart, cartControllerRemoveFromCart, favoritesControllerGetFavorites, favoritesControllerAddFavorite, favoritesControllerRemoveFavorite, stockingGetPurchases, stockingCreatePurchase, stockingReceivePurchase, stockingGetTransfers, stockingCreateTransfer, stockingShipTransfer, stockingReceiveTransfer, stockingGetRequests, stockingGetPendingDispatch, stockingDispatchOrders, stockingGetActiveDeliveries, stockingReconcilePod, stockingGetPhysicalReconciliations, stockingSubmitPhysicalReconciliation, stockingGetReconciliationReport, stockingGetPartners, stockingCreatePartner, stockingGetPartner, stockingUpdatePartner, stockingAdjustPartnerWallet, standalonePosControllerCreateSetupKey, standalonePosControllerActivateDevice, standalonePosControllerValidateKey, standalonePosControllerLinkOrganization, b2BGetCatalog, b2BGetInvoices, b2BGetOrders, b2BCreateOrder, b2BCreateQuote, crmIntegrationsGetAuthUrl, crmIntegrationsHandleCallback, crmIntegrationsHandleWebhook, crmIntegrationsReplyToActivity, unitsGetUnits, strapiCreateConnection, strapiListConnections, strapiGetConnection, strapiUpdateConnection, strapiDeleteConnection, strapiTriggerSync, strapiEnqueueSync, strapiGetWebhookLogs, strapiGetSyncLogs, strapiExchangeCustomerToken, strapiRegisterCustomer, strapiReceiveWebhook, analyticsControllerGetDashboardAnalytics, analyticsControllerGetResourceUtilization };
|
|
2008
2008
|
};
|
|
2009
2009
|
|
|
2010
|
+
// src/proxy.ts
|
|
2011
|
+
function getEnvOrgSlug() {
|
|
2012
|
+
if (typeof process !== "undefined" && process.env) {
|
|
2013
|
+
const slug = process.env.SCRYME_ORG_SLUG || process.env.NEXT_PUBLIC_SCRYME_ORG_SLUG;
|
|
2014
|
+
if (slug) return slug;
|
|
2015
|
+
}
|
|
2016
|
+
try {
|
|
2017
|
+
const getMeta = new Function("return typeof import.meta !== 'undefined' ? import.meta : undefined");
|
|
2018
|
+
const meta = getMeta();
|
|
2019
|
+
if (meta && meta.env) {
|
|
2020
|
+
const slug = meta.env.VITE_SCRYME_ORG_SLUG || meta.env.SCRYME_ORG_SLUG;
|
|
2021
|
+
if (slug) return slug;
|
|
2022
|
+
}
|
|
2023
|
+
} catch (e) {
|
|
2024
|
+
}
|
|
2025
|
+
return void 0;
|
|
2026
|
+
}
|
|
2027
|
+
function expectsOrgSlug(fn) {
|
|
2028
|
+
const fnStr = fn.toString();
|
|
2029
|
+
const match = fnStr.match(/^\s*(?:async\s+)?\(([^)]+)\)/);
|
|
2030
|
+
if (!match) {
|
|
2031
|
+
const singleMatch = fnStr.match(/^\s*(\w+)\s*=>/);
|
|
2032
|
+
return singleMatch ? singleMatch[1] === "orgSlug" : false;
|
|
2033
|
+
}
|
|
2034
|
+
const firstParam = match[1].split(",")[0].split(":")[0].trim();
|
|
2035
|
+
return firstParam === "orgSlug";
|
|
2036
|
+
}
|
|
2037
|
+
function getStringParamCount(fn) {
|
|
2038
|
+
const fnStr = fn.toString();
|
|
2039
|
+
const match = fnStr.match(/^\s*(?:async\s+)?\(([^)]+)\)/);
|
|
2040
|
+
if (!match) return 0;
|
|
2041
|
+
const params = match[1].split(",").map((p) => p.trim());
|
|
2042
|
+
let count = 0;
|
|
2043
|
+
for (const param of params) {
|
|
2044
|
+
const cleanParam = param.split(":")[0].split("=")[0].trim();
|
|
2045
|
+
const lower = cleanParam.toLowerCase();
|
|
2046
|
+
if (lower === "params" || lower === "options" || lower.endsWith("dto") || lower.endsWith("body") || lower.endsWith("payload")) {
|
|
2047
|
+
break;
|
|
2048
|
+
}
|
|
2049
|
+
count++;
|
|
2050
|
+
}
|
|
2051
|
+
return count;
|
|
2052
|
+
}
|
|
2053
|
+
var getScrymeV3API2 = (axiosInstance, defaultOrgSlug) => {
|
|
2054
|
+
const api = getScrymeV3API(axiosInstance);
|
|
2055
|
+
return new Proxy(api, {
|
|
2056
|
+
get(target, prop, receiver) {
|
|
2057
|
+
const originalValue = Reflect.get(target, prop, receiver);
|
|
2058
|
+
if (typeof originalValue === "function") {
|
|
2059
|
+
if (expectsOrgSlug(originalValue)) {
|
|
2060
|
+
return function(...args) {
|
|
2061
|
+
const stringParamsExpected = getStringParamCount(originalValue);
|
|
2062
|
+
const stringArgsPassed = args.filter((arg) => typeof arg === "string").length;
|
|
2063
|
+
if (stringArgsPassed < stringParamsExpected) {
|
|
2064
|
+
const envSlug = defaultOrgSlug || getEnvOrgSlug() || "default-org";
|
|
2065
|
+
return originalValue.apply(this, [envSlug, ...args]);
|
|
2066
|
+
}
|
|
2067
|
+
return originalValue.apply(this, args);
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
return originalValue;
|
|
2072
|
+
}
|
|
2073
|
+
});
|
|
2074
|
+
};
|
|
2075
|
+
|
|
2010
2076
|
// src/base.ts
|
|
2011
2077
|
var methodsWithOrgSlugSet = /* @__PURE__ */ new Set([
|
|
2012
2078
|
"publicServicesListServices",
|
|
@@ -2257,6 +2323,9 @@ var ordersMapping = {
|
|
|
2257
2323
|
updateStatus: "ordersUpdateStatus",
|
|
2258
2324
|
requestB2BQuote: "ordersRequestB2BQuote",
|
|
2259
2325
|
convertQuoteToOrder: "ordersConvertQuoteToOrder",
|
|
2326
|
+
getCatalog: "b2BGetCatalog",
|
|
2327
|
+
getInvoices: "b2BGetInvoices",
|
|
2328
|
+
createQuote: "b2BCreateQuote",
|
|
2260
2329
|
getB2BCatalog: "b2BGetCatalog",
|
|
2261
2330
|
getB2BInvoices: "b2BGetInvoices",
|
|
2262
2331
|
getB2BOrders: "b2BGetOrders",
|
|
@@ -2529,75 +2598,6 @@ function getJwtExpiry(token) {
|
|
|
2529
2598
|
return null;
|
|
2530
2599
|
}
|
|
2531
2600
|
|
|
2532
|
-
// src/server.ts
|
|
2533
|
-
var import_axios2 = __toESM(require("axios"));
|
|
2534
|
-
|
|
2535
|
-
// src/index.ts
|
|
2536
|
-
function getEnvOrgSlug() {
|
|
2537
|
-
if (typeof process !== "undefined" && process.env) {
|
|
2538
|
-
const slug = process.env.SCRYME_ORG_SLUG || process.env.NEXT_PUBLIC_SCRYME_ORG_SLUG;
|
|
2539
|
-
if (slug) return slug;
|
|
2540
|
-
}
|
|
2541
|
-
try {
|
|
2542
|
-
const getMeta = new Function("return typeof import.meta !== 'undefined' ? import.meta : undefined");
|
|
2543
|
-
const meta = getMeta();
|
|
2544
|
-
if (meta && meta.env) {
|
|
2545
|
-
const slug = meta.env.VITE_SCRYME_ORG_SLUG || meta.env.SCRYME_ORG_SLUG;
|
|
2546
|
-
if (slug) return slug;
|
|
2547
|
-
}
|
|
2548
|
-
} catch (e) {
|
|
2549
|
-
}
|
|
2550
|
-
return void 0;
|
|
2551
|
-
}
|
|
2552
|
-
function expectsOrgSlug(fn) {
|
|
2553
|
-
const fnStr = fn.toString();
|
|
2554
|
-
const match = fnStr.match(/^\s*(?:async\s+)?\(([^)]+)\)/);
|
|
2555
|
-
if (!match) {
|
|
2556
|
-
const singleMatch = fnStr.match(/^\s*(\w+)\s*=>/);
|
|
2557
|
-
return singleMatch ? singleMatch[1] === "orgSlug" : false;
|
|
2558
|
-
}
|
|
2559
|
-
const firstParam = match[1].split(",")[0].split(":")[0].trim();
|
|
2560
|
-
return firstParam === "orgSlug";
|
|
2561
|
-
}
|
|
2562
|
-
function getStringParamCount(fn) {
|
|
2563
|
-
const fnStr = fn.toString();
|
|
2564
|
-
const match = fnStr.match(/^\s*(?:async\s+)?\(([^)]+)\)/);
|
|
2565
|
-
if (!match) return 0;
|
|
2566
|
-
const params = match[1].split(",").map((p) => p.trim());
|
|
2567
|
-
let count = 0;
|
|
2568
|
-
for (const param of params) {
|
|
2569
|
-
const cleanParam = param.split(":")[0].split("=")[0].trim();
|
|
2570
|
-
const lower = cleanParam.toLowerCase();
|
|
2571
|
-
if (lower === "params" || lower === "options" || lower.endsWith("dto") || lower.endsWith("body") || lower.endsWith("payload")) {
|
|
2572
|
-
break;
|
|
2573
|
-
}
|
|
2574
|
-
count++;
|
|
2575
|
-
}
|
|
2576
|
-
return count;
|
|
2577
|
-
}
|
|
2578
|
-
var getScrymeV3API2 = (axiosInstance, defaultOrgSlug) => {
|
|
2579
|
-
const api = getScrymeV3API(axiosInstance);
|
|
2580
|
-
return new Proxy(api, {
|
|
2581
|
-
get(target, prop, receiver) {
|
|
2582
|
-
const originalValue = Reflect.get(target, prop, receiver);
|
|
2583
|
-
if (typeof originalValue === "function") {
|
|
2584
|
-
if (expectsOrgSlug(originalValue)) {
|
|
2585
|
-
return function(...args) {
|
|
2586
|
-
const stringParamsExpected = getStringParamCount(originalValue);
|
|
2587
|
-
const stringArgsPassed = args.filter((arg) => typeof arg === "string").length;
|
|
2588
|
-
if (stringArgsPassed < stringParamsExpected) {
|
|
2589
|
-
const envSlug = defaultOrgSlug || getEnvOrgSlug() || "default-org";
|
|
2590
|
-
return originalValue.apply(this, [envSlug, ...args]);
|
|
2591
|
-
}
|
|
2592
|
-
return originalValue.apply(this, args);
|
|
2593
|
-
};
|
|
2594
|
-
}
|
|
2595
|
-
}
|
|
2596
|
-
return originalValue;
|
|
2597
|
-
}
|
|
2598
|
-
});
|
|
2599
|
-
};
|
|
2600
|
-
|
|
2601
2601
|
// src/client.tsx
|
|
2602
2602
|
var InMemoryStorage = class {
|
|
2603
2603
|
constructor() {
|
|
@@ -2631,7 +2631,7 @@ var ScrymeClientSDK = class {
|
|
|
2631
2631
|
if (finalBaseURL && !finalBaseURL.includes("/api") && !finalBaseURL.endsWith("/api")) {
|
|
2632
2632
|
finalBaseURL = finalBaseURL.replace(/\/$/, "") + "/api";
|
|
2633
2633
|
}
|
|
2634
|
-
this.axiosInstance =
|
|
2634
|
+
this.axiosInstance = import_axios2.default.create({
|
|
2635
2635
|
baseURL: finalBaseURL
|
|
2636
2636
|
});
|
|
2637
2637
|
let storage;
|
|
@@ -2876,6 +2876,7 @@ var ScrymeClientSDK = class {
|
|
|
2876
2876
|
};
|
|
2877
2877
|
this.inventory = buildModule(this.api, config.orgSlug, inventoryMapping);
|
|
2878
2878
|
this.orders = buildModule(this.api, config.orgSlug, ordersMapping);
|
|
2879
|
+
this.b2b = this.orders;
|
|
2879
2880
|
this.crm = buildModule(this.api, config.orgSlug, crmMapping);
|
|
2880
2881
|
this.pos = buildModule(this.api, config.orgSlug, posMapping);
|
|
2881
2882
|
this.accounting = buildModule(this.api, config.orgSlug, accountingMapping);
|