@hiennc24/constant 1.0.17 → 1.0.19
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/lib/collections.constant.d.ts +61 -2
- package/lib/collections.constant.js +71 -3
- package/lib/index.d.ts +2 -5
- package/lib/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export type CollectionsConstantType = {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
};
|
|
1
4
|
declare const COLLECTIONS: {
|
|
2
5
|
MENU_REPOSITORY_NAME: string;
|
|
3
6
|
MENU_COLLECTION_NAME: string;
|
|
@@ -501,9 +504,65 @@ declare const COLLECTIONS: {
|
|
|
501
504
|
INVOICE_DETAIL_COLLECTION_NAME: string;
|
|
502
505
|
INVOICE_PAYMENT_TYPE_REPOSITORY_NAME: string;
|
|
503
506
|
INVOICE_PAYMENT_TYPE_COLLECTION_NAME: string;
|
|
504
|
-
PURCHASE_SETTING_REPOSITORY_NAME: string;
|
|
505
|
-
PURCHASE_SETTING_COLLECTION_NAME: string;
|
|
506
507
|
DEBT_ITEMS_REPOSITORY_NAME: string;
|
|
507
508
|
DEBT_ITEMS_COLLECTION_NAME: string;
|
|
509
|
+
USER_REPOSITORY_NAME: string;
|
|
510
|
+
USER_COLLECTION_NAME: string;
|
|
511
|
+
ACCOUNTS_REPOSITORY_NAME: string;
|
|
512
|
+
ACCOUNTS_COLLECTION_NAME: string;
|
|
513
|
+
ROLE_REPOSITORY_NAME: string;
|
|
514
|
+
ROLE_COLLECTION_NAME: string;
|
|
515
|
+
GIT_PROJECTS_REPOSITORY_NAME: string;
|
|
516
|
+
GIT_PROJECTS_COLLECTION_NAME: string;
|
|
517
|
+
EMAIL_KEYWORD_REPOSITORY_NAME: string;
|
|
518
|
+
EMAIL_KEYWORD_COLLECTION_NAME: string;
|
|
519
|
+
EMAIL_TEMPLATE_REPOSITORY_NAME: string;
|
|
520
|
+
EMAIL_TEMPLATE_COLLECTION_NAME: string;
|
|
521
|
+
EMAIL_SEND_REPOSITORY_NAME: string;
|
|
522
|
+
EMAIL_SEND_COLLECTION_NAME: string;
|
|
523
|
+
EMAIL_LIBRARY_REPOSITORY_NAME: string;
|
|
524
|
+
EMAIL_LIBRARY_COLLECTION_NAME: string;
|
|
525
|
+
EMAIL_CAMPAIGN_REPOSITORY_NAME: string;
|
|
526
|
+
EMAIL_CAMPAIGN_COLLECTION_NAME: string;
|
|
527
|
+
EMAIL_CUSTOMER_REPOSITORY_NAME: string;
|
|
528
|
+
EMAIL_CUSTOMER_COLLECTION_NAME: string;
|
|
529
|
+
EMAIL_REPOSITORY_NAME: string;
|
|
530
|
+
EMAIL_COLLECTION_NAME: string;
|
|
531
|
+
APPLICATION_REPOSITORY_NAME: string;
|
|
532
|
+
APPLICATION_COLLECTION_NAME: string;
|
|
533
|
+
TENANT_SETTING_REPOSITORY_NAME: string;
|
|
534
|
+
TENANT_SETTING_COLLECTION_NAME: string;
|
|
535
|
+
TENANT_PAYMENT_REPOSITORY_NAME: string;
|
|
536
|
+
TENANT_PAYMENT_COLLECTION_NAME: string;
|
|
537
|
+
POTENTIAL_TENANT_REPOSITORY_NAME: string;
|
|
538
|
+
POTENTIAL_TENANT_COLLECTION_NAME: string;
|
|
539
|
+
BUSINESS_CATEGORY_REPOSITORY_NAME: string;
|
|
540
|
+
BUSINESS_CATEGORY_COLLECTION_NAME: string;
|
|
541
|
+
TENANT_INFORMATION_REPOSITORY_NAME: string;
|
|
542
|
+
TENANT_INFORMATION_COLLECTION_NAME: string;
|
|
543
|
+
TENANT_ORGANIZATION_REPOSITORY_NAME: string;
|
|
544
|
+
TENANT_ORGANIZATION_COLLECTION_NAME: string;
|
|
545
|
+
TENANT_ADMIN_SETTING_REPOSITORY_NAME: string;
|
|
546
|
+
TENANT_ADMIN_SETTING_COLLECTION_NAME: string;
|
|
547
|
+
SERVER_REPOSITORY_NAME: string;
|
|
548
|
+
SERVER_COLLECTION_NAME: string;
|
|
549
|
+
SERVICE_REPOSITORY_NAME: string;
|
|
550
|
+
SERVICE_COLLECTION_NAME: string;
|
|
551
|
+
RELEASE_REPOSITORY_NAME: string;
|
|
552
|
+
RELEASE_COLLECTION_NAME: string;
|
|
553
|
+
WEB_APPLICATION_REPOSITORY_NAME: string;
|
|
554
|
+
WEB_APPLICATION_COLLECTION_NAME: string;
|
|
555
|
+
APIS_SERVICES_REPOSITORY_NAME: string;
|
|
556
|
+
APIS_SERVICES_COLLECTION_NAME: string;
|
|
557
|
+
APIS_SERVICES_INFORMATION_REPOSITORY_NAME: string;
|
|
558
|
+
APIS_SERVICES_INFORMATION_COLLECTION_NAME: string;
|
|
559
|
+
PURCHASE_SETTING_REPOSITORY_NAME: string;
|
|
560
|
+
PURCHASE_SETTING_COLLECTION_NAME: string;
|
|
561
|
+
PARTNER_LIST_REPOSITORY_NAME: string;
|
|
562
|
+
PARTNER_LIST_COLLECTION_NAME: string;
|
|
563
|
+
PARTNER_TRADER_REPOSITORY_NAME: string;
|
|
564
|
+
PARTNER_TRADER_COLLECTION_NAME: string;
|
|
565
|
+
CONTRACT_LIST_REPOSITORY_NAME: string;
|
|
566
|
+
CONTRACT_LIST_COLLECTION_NAME: string;
|
|
508
567
|
};
|
|
509
568
|
export default COLLECTIONS;
|
|
@@ -633,11 +633,79 @@ const COLLECTIONS = {
|
|
|
633
633
|
INVOICE_DETAIL_COLLECTION_NAME: 'invoice_details',
|
|
634
634
|
INVOICE_PAYMENT_TYPE_REPOSITORY_NAME: 'invoicePaymentType',
|
|
635
635
|
INVOICE_PAYMENT_TYPE_COLLECTION_NAME: 'invoice_payment_types',
|
|
636
|
-
// Setting
|
|
637
|
-
PURCHASE_SETTING_REPOSITORY_NAME: 'purchaseSetting',
|
|
638
|
-
PURCHASE_SETTING_COLLECTION_NAME: 'purchase_settings',
|
|
639
636
|
// Detail Payment Invoices
|
|
640
637
|
DEBT_ITEMS_REPOSITORY_NAME: 'debtItems',
|
|
641
638
|
DEBT_ITEMS_COLLECTION_NAME: 'debt_items',
|
|
639
|
+
// User
|
|
640
|
+
USER_REPOSITORY_NAME: 'user',
|
|
641
|
+
USER_COLLECTION_NAME: 'users',
|
|
642
|
+
// User Account
|
|
643
|
+
ACCOUNTS_REPOSITORY_NAME: 'account',
|
|
644
|
+
ACCOUNTS_COLLECTION_NAME: 'accounts',
|
|
645
|
+
// Role
|
|
646
|
+
ROLE_REPOSITORY_NAME: 'role',
|
|
647
|
+
ROLE_COLLECTION_NAME: 'roles',
|
|
648
|
+
// Git Projects
|
|
649
|
+
GIT_PROJECTS_REPOSITORY_NAME: 'gitProject',
|
|
650
|
+
GIT_PROJECTS_COLLECTION_NAME: 'git_projects',
|
|
651
|
+
// Email Template
|
|
652
|
+
EMAIL_KEYWORD_REPOSITORY_NAME: 'emailKeywords',
|
|
653
|
+
EMAIL_KEYWORD_COLLECTION_NAME: 'email_keywords',
|
|
654
|
+
EMAIL_TEMPLATE_REPOSITORY_NAME: 'emailTemplates',
|
|
655
|
+
EMAIL_TEMPLATE_COLLECTION_NAME: 'email_templates',
|
|
656
|
+
// Email Marketing
|
|
657
|
+
EMAIL_SEND_REPOSITORY_NAME: 'emailSend',
|
|
658
|
+
EMAIL_SEND_COLLECTION_NAME: 'email_sends',
|
|
659
|
+
EMAIL_LIBRARY_REPOSITORY_NAME: 'emailLibrary',
|
|
660
|
+
EMAIL_LIBRARY_COLLECTION_NAME: 'email_libraries',
|
|
661
|
+
EMAIL_CAMPAIGN_REPOSITORY_NAME: 'emailCampaign',
|
|
662
|
+
EMAIL_CAMPAIGN_COLLECTION_NAME: 'email_campaigns',
|
|
663
|
+
EMAIL_CUSTOMER_REPOSITORY_NAME: 'emailCustomer',
|
|
664
|
+
EMAIL_CUSTOMER_COLLECTION_NAME: 'email_customers',
|
|
665
|
+
EMAIL_REPOSITORY_NAME: 'email',
|
|
666
|
+
EMAIL_COLLECTION_NAME: 'emails',
|
|
667
|
+
// Tenant
|
|
668
|
+
APPLICATION_REPOSITORY_NAME: 'application',
|
|
669
|
+
APPLICATION_COLLECTION_NAME: 'applications',
|
|
670
|
+
TENANT_SETTING_REPOSITORY_NAME: 'tenantSetting',
|
|
671
|
+
TENANT_SETTING_COLLECTION_NAME: 'tenant_settings',
|
|
672
|
+
TENANT_PAYMENT_REPOSITORY_NAME: 'tenantPayment',
|
|
673
|
+
TENANT_PAYMENT_COLLECTION_NAME: 'tenant_payments',
|
|
674
|
+
POTENTIAL_TENANT_REPOSITORY_NAME: 'potentialTenant',
|
|
675
|
+
POTENTIAL_TENANT_COLLECTION_NAME: 'potential_tenants',
|
|
676
|
+
BUSINESS_CATEGORY_REPOSITORY_NAME: 'businessCategory',
|
|
677
|
+
BUSINESS_CATEGORY_COLLECTION_NAME: 'business_categories',
|
|
678
|
+
TENANT_INFORMATION_REPOSITORY_NAME: 'tenantInformation',
|
|
679
|
+
TENANT_INFORMATION_COLLECTION_NAME: 'tenant_informations',
|
|
680
|
+
TENANT_ORGANIZATION_REPOSITORY_NAME: 'tenantOrganization',
|
|
681
|
+
TENANT_ORGANIZATION_COLLECTION_NAME: 'tenant_organizations',
|
|
682
|
+
// Tenant
|
|
683
|
+
TENANT_ADMIN_SETTING_REPOSITORY_NAME: 'tenantAdminSetting',
|
|
684
|
+
TENANT_ADMIN_SETTING_COLLECTION_NAME: 'tenant_admin_settings',
|
|
685
|
+
// Server
|
|
686
|
+
SERVER_REPOSITORY_NAME: 'server',
|
|
687
|
+
SERVER_COLLECTION_NAME: 'servers',
|
|
688
|
+
SERVICE_REPOSITORY_NAME: 'service',
|
|
689
|
+
SERVICE_COLLECTION_NAME: 'services',
|
|
690
|
+
RELEASE_REPOSITORY_NAME: 'release',
|
|
691
|
+
RELEASE_COLLECTION_NAME: 'releases',
|
|
692
|
+
WEB_APPLICATION_REPOSITORY_NAME: 'webApplication',
|
|
693
|
+
WEB_APPLICATION_COLLECTION_NAME: 'web_applications',
|
|
694
|
+
APIS_SERVICES_REPOSITORY_NAME: 'apisServiceManagement',
|
|
695
|
+
APIS_SERVICES_COLLECTION_NAME: 'apis_services_managements',
|
|
696
|
+
APIS_SERVICES_INFORMATION_REPOSITORY_NAME: 'apisServicesInformation',
|
|
697
|
+
APIS_SERVICES_INFORMATION_COLLECTION_NAME: 'apis_services_informations',
|
|
698
|
+
// Setting
|
|
699
|
+
PURCHASE_SETTING_REPOSITORY_NAME: 'purchaseSetting',
|
|
700
|
+
PURCHASE_SETTING_COLLECTION_NAME: 'purchase_settings',
|
|
701
|
+
// Partner List
|
|
702
|
+
PARTNER_LIST_REPOSITORY_NAME: 'partnerList',
|
|
703
|
+
PARTNER_LIST_COLLECTION_NAME: 'partner_lists',
|
|
704
|
+
// Partner Trader
|
|
705
|
+
PARTNER_TRADER_REPOSITORY_NAME: 'partnerTrader',
|
|
706
|
+
PARTNER_TRADER_COLLECTION_NAME: 'partner_traders',
|
|
707
|
+
// Contract List
|
|
708
|
+
CONTRACT_LIST_REPOSITORY_NAME: 'contractList',
|
|
709
|
+
CONTRACT_LIST_COLLECTION_NAME: 'contract_lists',
|
|
642
710
|
};
|
|
643
711
|
exports.default = COLLECTIONS;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import SERVICE_BROKER from "./service.constant.json";
|
|
2
|
-
|
|
3
|
-
export { SERVICE_BROKER, COLLECTIONS };
|
|
2
|
+
export default SERVICE_BROKER;
|
|
4
3
|
export type ServiceBrokerConstantType = {
|
|
5
4
|
[key: string]: any;
|
|
6
5
|
};
|
|
7
|
-
export
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
};
|
|
6
|
+
export { default as COLLECTIONS, CollectionsConstantType } from './collections.constant';
|
|
10
7
|
export declare const addLocalServices: (services: ServiceBrokerConstantType) => void;
|
package/lib/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.addLocalServices = exports.COLLECTIONS =
|
|
6
|
+
exports.addLocalServices = exports.COLLECTIONS = void 0;
|
|
7
7
|
const service_constant_json_1 = __importDefault(require("./service.constant.json"));
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
exports
|
|
8
|
+
exports.default = service_constant_json_1.default;
|
|
9
|
+
var collections_constant_1 = require("./collections.constant");
|
|
10
|
+
Object.defineProperty(exports, "COLLECTIONS", { enumerable: true, get: function () { return __importDefault(collections_constant_1).default; } });
|
|
11
11
|
const addLocalServices = (services) => {
|
|
12
12
|
Object.assign(service_constant_json_1.default, services);
|
|
13
13
|
console.log("added local services!");
|