@appcorp/stellar-solutions-modules 0.1.70 → 0.1.72
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/global-modules/bank/cache.js +2 -2
- package/global-modules/bank/constants.d.ts +1 -3
- package/global-modules/bank/constants.js +1 -3
- package/global-modules/bank/context.js +3 -3
- package/global-modules/branch/cache.js +2 -2
- package/global-modules/branch/constants.d.ts +1 -3
- package/global-modules/branch/constants.js +1 -3
- package/global-modules/branch/context.js +3 -3
- package/global-modules/currency/cache.js +2 -2
- package/global-modules/currency/constants.d.ts +1 -3
- package/global-modules/currency/constants.js +1 -3
- package/global-modules/currency/context.js +3 -3
- package/global-modules/payment-mode/cache.js +2 -2
- package/global-modules/payment-mode/constants.d.ts +1 -3
- package/global-modules/payment-mode/constants.js +1 -3
- package/global-modules/payment-mode/context.js +3 -3
- package/global-modules/preferences/cache.js +2 -2
- package/global-modules/preferences/constants.d.ts +1 -3
- package/global-modules/preferences/constants.js +1 -3
- package/global-modules/preferences/context.js +3 -3
- package/global-modules/tax/cache.js +1 -1
- package/package.json +1 -1
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.isBanksCacheStale = exports.preloadBanks = exports.invalidateBanksCache = exports.getCachedBankById = exports.getCachedBanks = exports.getCachedBanksSync = void 0;
|
|
9
|
-
var constants_1 = require("
|
|
9
|
+
var constants_1 = require("../../constants");
|
|
10
10
|
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
11
11
|
var constants_2 = require("./constants");
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// CACHE CONFIGURATION
|
|
14
14
|
// ============================================================================
|
|
15
15
|
var BANK_CACHE_CONFIG = {
|
|
16
|
-
apiUrl: constants_2.BANK_API_ROUTES.
|
|
16
|
+
apiUrl: constants_2.BANK_API_ROUTES.UNIT,
|
|
17
17
|
cacheKey: constants_1.LS_KEYS.BANKS,
|
|
18
18
|
};
|
|
19
19
|
// ============================================================================
|
|
@@ -21,9 +21,7 @@ export declare const pageLimit: number;
|
|
|
21
21
|
* API endpoints for bank operations
|
|
22
22
|
*/
|
|
23
23
|
export declare const BANK_API_ROUTES: {
|
|
24
|
-
|
|
25
|
-
readonly BANKS: "/api/banks";
|
|
26
|
-
readonly BANK_BY_ID: "/api/bank/bank-by-id";
|
|
24
|
+
UNIT: string;
|
|
27
25
|
};
|
|
28
26
|
/**
|
|
29
27
|
* Table column definitions for bank listing
|
|
@@ -30,9 +30,7 @@ exports.pageLimit = Number(process.env.NEXT_PUBLIC_PAGE_LIMIT_BANK);
|
|
|
30
30
|
* API endpoints for bank operations
|
|
31
31
|
*/
|
|
32
32
|
exports.BANK_API_ROUTES = {
|
|
33
|
-
|
|
34
|
-
BANKS: "/api/banks",
|
|
35
|
-
BANK_BY_ID: "/api/bank/bank-by-id",
|
|
33
|
+
UNIT: "/api/bank",
|
|
36
34
|
};
|
|
37
35
|
// ============================================================================
|
|
38
36
|
// TABLE CONFIGURATION
|
|
@@ -268,10 +268,10 @@ var useBankState = function () {
|
|
|
268
268
|
deleteParams: deleteParams,
|
|
269
269
|
listCallback: listCallback,
|
|
270
270
|
listParams: listParams,
|
|
271
|
-
listUrl: constants_1.BANK_API_ROUTES.
|
|
271
|
+
listUrl: constants_1.BANK_API_ROUTES.UNIT,
|
|
272
272
|
searchQuery: debouncedQuery,
|
|
273
|
-
unitByIdUrl: constants_1.BANK_API_ROUTES.
|
|
274
|
-
unitUrl: constants_1.BANK_API_ROUTES.
|
|
273
|
+
unitByIdUrl: constants_1.BANK_API_ROUTES.UNIT,
|
|
274
|
+
unitUrl: constants_1.BANK_API_ROUTES.UNIT,
|
|
275
275
|
updateCallback: updateCallback,
|
|
276
276
|
updateDeps: [state],
|
|
277
277
|
updateParams: updateParams,
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.isBranchesCacheStale = exports.preloadBranches = exports.invalidateBranchesCache = exports.getCachedBranchById = exports.getCachedBranches = exports.getCachedBranchesSync = void 0;
|
|
9
|
-
var constants_1 = require("
|
|
9
|
+
var constants_1 = require("../../constants");
|
|
10
10
|
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
11
11
|
var constants_2 = require("./constants");
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// CACHE CONFIGURATION
|
|
14
14
|
// ============================================================================
|
|
15
15
|
var BRANCH_CACHE_CONFIG = {
|
|
16
|
-
apiUrl: constants_2.BRANCH_API_ROUTES.
|
|
16
|
+
apiUrl: constants_2.BRANCH_API_ROUTES.UNIT,
|
|
17
17
|
cacheKey: constants_1.LS_KEYS.BRANCHES,
|
|
18
18
|
};
|
|
19
19
|
// ============================================================================
|
|
@@ -21,9 +21,7 @@ export declare const pageLimit: number;
|
|
|
21
21
|
* API endpoints for branch operations
|
|
22
22
|
*/
|
|
23
23
|
export declare const BRANCH_API_ROUTES: {
|
|
24
|
-
|
|
25
|
-
readonly BRANCHES: "/api/branches";
|
|
26
|
-
readonly BRANCH_BY_ID: "/api/branch/branch-by-id";
|
|
24
|
+
UNIT: string;
|
|
27
25
|
};
|
|
28
26
|
/**
|
|
29
27
|
* Table column definitions for branch listing
|
|
@@ -30,9 +30,7 @@ exports.pageLimit = Number(process.env.NEXT_PUBLIC_PAGE_LIMIT_BRANCH);
|
|
|
30
30
|
* API endpoints for branch operations
|
|
31
31
|
*/
|
|
32
32
|
exports.BRANCH_API_ROUTES = {
|
|
33
|
-
|
|
34
|
-
BRANCHES: "/api/branches",
|
|
35
|
-
BRANCH_BY_ID: "/api/branch/branch-by-id",
|
|
33
|
+
UNIT: "/api/branch",
|
|
36
34
|
};
|
|
37
35
|
// ============================================================================
|
|
38
36
|
// TABLE CONFIGURATION
|
|
@@ -273,10 +273,10 @@ var useBranchState = function () {
|
|
|
273
273
|
deleteParams: deleteParams,
|
|
274
274
|
listCallback: listCallback,
|
|
275
275
|
listParams: listParams,
|
|
276
|
-
listUrl: constants_1.BRANCH_API_ROUTES.
|
|
276
|
+
listUrl: constants_1.BRANCH_API_ROUTES.UNIT,
|
|
277
277
|
searchQuery: debouncedQuery,
|
|
278
|
-
unitByIdUrl: constants_1.BRANCH_API_ROUTES.
|
|
279
|
-
unitUrl: constants_1.BRANCH_API_ROUTES.
|
|
278
|
+
unitByIdUrl: constants_1.BRANCH_API_ROUTES.UNIT,
|
|
279
|
+
unitUrl: constants_1.BRANCH_API_ROUTES.UNIT,
|
|
280
280
|
updateCallback: updateCallback,
|
|
281
281
|
updateDeps: [state],
|
|
282
282
|
updateParams: updateParams,
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.isCurrenciesCacheStale = exports.preloadCurrencies = exports.invalidateCurrenciesCache = exports.getCachedCurrencyById = exports.getCachedCurrencies = exports.getCachedCurrenciesSync = void 0;
|
|
9
|
-
var constants_1 = require("
|
|
9
|
+
var constants_1 = require("../../constants");
|
|
10
10
|
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
11
11
|
var constants_2 = require("./constants");
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// CACHE CONFIGURATION
|
|
14
14
|
// ============================================================================
|
|
15
15
|
var CURRENCY_CACHE_CONFIG = {
|
|
16
|
-
apiUrl: constants_2.CURRENCY_API_ROUTES.
|
|
16
|
+
apiUrl: constants_2.CURRENCY_API_ROUTES.UNIT,
|
|
17
17
|
cacheKey: constants_1.LS_KEYS.CURRENCIES,
|
|
18
18
|
};
|
|
19
19
|
// ============================================================================
|
|
@@ -20,9 +20,7 @@ export declare const pageLimit: number;
|
|
|
20
20
|
* API endpoints for currency operations
|
|
21
21
|
*/
|
|
22
22
|
export declare const CURRENCY_API_ROUTES: {
|
|
23
|
-
|
|
24
|
-
readonly CURRENCY: "/api/currency";
|
|
25
|
-
readonly CURRENCY_BY_ID: "/api/currency/currency-by-id";
|
|
23
|
+
UNIT: string;
|
|
26
24
|
};
|
|
27
25
|
/**
|
|
28
26
|
* Table column definitions for currency listing
|
|
@@ -29,9 +29,7 @@ exports.pageLimit = Number(process.env.NEXT_PUBLIC_PAGE_LIMIT_CURRENCY);
|
|
|
29
29
|
* API endpoints for currency operations
|
|
30
30
|
*/
|
|
31
31
|
exports.CURRENCY_API_ROUTES = {
|
|
32
|
-
|
|
33
|
-
CURRENCY: "/api/currency",
|
|
34
|
-
CURRENCY_BY_ID: "/api/currency/currency-by-id",
|
|
32
|
+
UNIT: "/api/currencies",
|
|
35
33
|
};
|
|
36
34
|
// ============================================================================
|
|
37
35
|
// TABLE CONFIGURATION
|
|
@@ -257,10 +257,10 @@ var useCurrencyState = function () {
|
|
|
257
257
|
deleteParams: deleteParams,
|
|
258
258
|
listCallback: listCallback,
|
|
259
259
|
listParams: listParams,
|
|
260
|
-
listUrl: constants_1.CURRENCY_API_ROUTES.
|
|
260
|
+
listUrl: constants_1.CURRENCY_API_ROUTES.UNIT,
|
|
261
261
|
searchQuery: debouncedQuery,
|
|
262
|
-
unitByIdUrl: constants_1.CURRENCY_API_ROUTES.
|
|
263
|
-
unitUrl: constants_1.CURRENCY_API_ROUTES.
|
|
262
|
+
unitByIdUrl: constants_1.CURRENCY_API_ROUTES.UNIT,
|
|
263
|
+
unitUrl: constants_1.CURRENCY_API_ROUTES.UNIT,
|
|
264
264
|
updateCallback: updateCallback,
|
|
265
265
|
updateDeps: [state],
|
|
266
266
|
updateParams: updateParams,
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.isPaymentModesCacheStale = exports.preloadPaymentModes = exports.invalidatePaymentModesCache = exports.getCachedPaymentModeById = exports.getCachedPaymentModes = exports.getCachedPaymentModesSync = void 0;
|
|
9
|
-
var constants_1 = require("
|
|
9
|
+
var constants_1 = require("../../constants");
|
|
10
10
|
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
11
11
|
var constants_2 = require("./constants");
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// CACHE CONFIGURATION
|
|
14
14
|
// ============================================================================
|
|
15
15
|
var PAYMENT_MODE_CACHE_CONFIG = {
|
|
16
|
-
apiUrl: constants_2.PAYMENT_MODE_API_ROUTES.
|
|
16
|
+
apiUrl: constants_2.PAYMENT_MODE_API_ROUTES.UNIT,
|
|
17
17
|
cacheKey: constants_1.LS_KEYS.PAYMENT_MODES,
|
|
18
18
|
};
|
|
19
19
|
// ============================================================================
|
|
@@ -21,9 +21,7 @@ export declare const pageLimit: number;
|
|
|
21
21
|
* API endpoints for payment mode operations
|
|
22
22
|
*/
|
|
23
23
|
export declare const PAYMENT_MODE_API_ROUTES: {
|
|
24
|
-
|
|
25
|
-
readonly PAYMENT_MODES: "/api/payment-modes";
|
|
26
|
-
readonly PAYMENT_MODE_BY_ID: "/api/payment-mode/payment-mode-by-id";
|
|
24
|
+
UNIT: string;
|
|
27
25
|
};
|
|
28
26
|
/**
|
|
29
27
|
* Table column definitions for payment mode listing
|
|
@@ -30,9 +30,7 @@ exports.pageLimit = Number(process.env.NEXT_PUBLIC_PAGE_LIMIT_PAYMENT_MODE);
|
|
|
30
30
|
* API endpoints for payment mode operations
|
|
31
31
|
*/
|
|
32
32
|
exports.PAYMENT_MODE_API_ROUTES = {
|
|
33
|
-
|
|
34
|
-
PAYMENT_MODES: "/api/payment-modes",
|
|
35
|
-
PAYMENT_MODE_BY_ID: "/api/payment-mode/payment-mode-by-id",
|
|
33
|
+
UNIT: "/api/payment-mode",
|
|
36
34
|
};
|
|
37
35
|
// ============================================================================
|
|
38
36
|
// TABLE CONFIGURATION
|
|
@@ -255,10 +255,10 @@ var usePaymentModeState = function () {
|
|
|
255
255
|
deleteParams: deleteParams,
|
|
256
256
|
listCallback: listCallback,
|
|
257
257
|
listParams: listParams,
|
|
258
|
-
listUrl: constants_1.PAYMENT_MODE_API_ROUTES.
|
|
258
|
+
listUrl: constants_1.PAYMENT_MODE_API_ROUTES.UNIT,
|
|
259
259
|
searchQuery: debouncedQuery,
|
|
260
|
-
unitByIdUrl: constants_1.PAYMENT_MODE_API_ROUTES.
|
|
261
|
-
unitUrl: constants_1.PAYMENT_MODE_API_ROUTES.
|
|
260
|
+
unitByIdUrl: constants_1.PAYMENT_MODE_API_ROUTES.UNIT,
|
|
261
|
+
unitUrl: constants_1.PAYMENT_MODE_API_ROUTES.UNIT,
|
|
262
262
|
updateCallback: updateCallback,
|
|
263
263
|
updateDeps: [state],
|
|
264
264
|
updateParams: updateParams,
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.isPreferencesCacheStale = exports.preloadPreferences = exports.invalidatePreferencesCache = exports.getCachedPreferenceById = exports.getCachedPreferences = exports.getCachedPreferencesSync = void 0;
|
|
9
|
-
var constants_1 = require("
|
|
9
|
+
var constants_1 = require("../../constants");
|
|
10
10
|
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
11
11
|
var constants_2 = require("./constants");
|
|
12
12
|
// ============================================================================
|
|
13
13
|
// CACHE CONFIGURATION
|
|
14
14
|
// ============================================================================
|
|
15
15
|
var PREFERENCE_CACHE_CONFIG = {
|
|
16
|
-
apiUrl: constants_2.PREFERENCE_API_ROUTES.
|
|
16
|
+
apiUrl: constants_2.PREFERENCE_API_ROUTES.UNIT,
|
|
17
17
|
cacheKey: constants_1.LS_KEYS.PREFERENCES,
|
|
18
18
|
};
|
|
19
19
|
// ============================================================================
|
|
@@ -29,9 +29,7 @@ export declare const PREFERENCE_API_ROUTES: {
|
|
|
29
29
|
readonly PAYMENT_MODE: "/api/payment-mode";
|
|
30
30
|
readonly PAYMENT_MODES: "/api/payment-modes";
|
|
31
31
|
readonly PAYMENT_MODE_BY_ID: "/api/payment-mode/payment-mode-by-id";
|
|
32
|
-
readonly
|
|
33
|
-
readonly PREFERENCES: "/api/preferences";
|
|
34
|
-
readonly PREFERENCE_BY_ID: "/api/preference/preference-by-id";
|
|
32
|
+
readonly UNIT: "/api/preference";
|
|
35
33
|
readonly TAX: "/api/tax";
|
|
36
34
|
readonly TAXES: "/api/taxes";
|
|
37
35
|
readonly TAX_BY_ID: "/api/tax/tax-by-id";
|
|
@@ -44,9 +44,7 @@ exports.PREFERENCE_API_ROUTES = {
|
|
|
44
44
|
PAYMENT_MODE: "/api/payment-mode",
|
|
45
45
|
PAYMENT_MODES: "/api/payment-modes",
|
|
46
46
|
PAYMENT_MODE_BY_ID: "/api/payment-mode/payment-mode-by-id",
|
|
47
|
-
|
|
48
|
-
PREFERENCES: "/api/preferences",
|
|
49
|
-
PREFERENCE_BY_ID: "/api/preference/preference-by-id",
|
|
47
|
+
UNIT: "/api/preference",
|
|
50
48
|
TAX: "/api/tax",
|
|
51
49
|
TAXES: "/api/taxes",
|
|
52
50
|
TAX_BY_ID: "/api/tax/tax-by-id",
|
|
@@ -189,10 +189,10 @@ var usePreferenceState = function () {
|
|
|
189
189
|
deleteParams: deleteParams,
|
|
190
190
|
listCallback: listCallback,
|
|
191
191
|
listParams: listParams,
|
|
192
|
-
listUrl: constants_1.PREFERENCE_API_ROUTES.
|
|
192
|
+
listUrl: constants_1.PREFERENCE_API_ROUTES.UNIT,
|
|
193
193
|
searchQuery: "",
|
|
194
|
-
unitByIdUrl: constants_1.PREFERENCE_API_ROUTES.
|
|
195
|
-
unitUrl: constants_1.PREFERENCE_API_ROUTES.
|
|
194
|
+
unitByIdUrl: constants_1.PREFERENCE_API_ROUTES.UNIT,
|
|
195
|
+
unitUrl: constants_1.PREFERENCE_API_ROUTES.UNIT,
|
|
196
196
|
updateCallback: updateCallback,
|
|
197
197
|
updateDeps: [state],
|
|
198
198
|
updateParams: updateParams,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.isTaxesCacheStale = exports.preloadTaxes = exports.invalidateTaxesCache = exports.getCachedTaxById = exports.getCachedTaxes = exports.getCachedTaxesSync = void 0;
|
|
9
|
-
var constants_1 = require("
|
|
9
|
+
var constants_1 = require("../../constants");
|
|
10
10
|
var constants_2 = require("./constants");
|
|
11
11
|
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
12
12
|
// ============================================================================
|
package/package.json
CHANGED