storemw-core-api 1.0.172 → 1.0.174

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.
@@ -1,5 +1,5 @@
1
1
  export { UserModel, ModelUserFields } from "./user/UserModel";
2
- export { UserPropModel, ModelUserPropFields } from "./user/UserPropModel";
2
+ export { UserPropModel, ModelUserPropFields } from "./user/unuse/UserPropModel";
3
3
  export { CustomerModel, ModelCustomerFields } from "./user/CustomerModel";
4
4
  export { RetailerModel, ModelRetailerFields } from "./user/RetailerModel";
5
5
  export { AdministratorModel, ModelAdministratorFields } from "./user/AdministratorModel";
@@ -9,7 +9,7 @@ export { DriverModel, ModelDriverFields } from "./user/DriverModel";
9
9
  export { MemberModel, ModelMemberFields } from "./user/MemberModel";
10
10
  export { AgentModel, ModelAgentFields } from "./user/AgentModel";
11
11
  export type { ModelUser, ModelUserCreateProps, ModelUserGetProps, ModelUserListProps } from "./user/UserModel";
12
- export type { ModelUserProp, ModelUserPropCreateProps, ModelUserPropGetProps, ModelUserPropListProps } from "./user/UserPropModel";
12
+ export type { ModelUserProp, ModelUserPropCreateProps, ModelUserPropGetProps, ModelUserPropListProps } from "./user/unuse/UserPropModel";
13
13
  export type { ModelCustomer, ModelCustomerCreateProps, ModelCustomerGetProps, ModelCustomerListProps } from "./user/CustomerModel";
14
14
  export type { ModelRetailer, ModelRetailerCreateProps, ModelRetailerGetProps, ModelRetailerListProps } from "./user/RetailerModel";
15
15
  export type { ModelAdministrator, ModelAdministratorCreateProps, ModelAdministratorGetProps, ModelAdministratorListProps } from "./user/AdministratorModel";
@@ -7,7 +7,7 @@ var UserModel_1 = require("./user/UserModel");
7
7
  Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return UserModel_1.UserModel; } });
8
8
  Object.defineProperty(exports, "ModelUserFields", { enumerable: true, get: function () { return UserModel_1.ModelUserFields; } });
9
9
  // export { UserStatusModel, ModelUserStatusFields } from "./user/UserStatusModel"
10
- var UserPropModel_1 = require("./user/UserPropModel");
10
+ var UserPropModel_1 = require("./user/unuse/UserPropModel");
11
11
  Object.defineProperty(exports, "UserPropModel", { enumerable: true, get: function () { return UserPropModel_1.UserPropModel; } });
12
12
  Object.defineProperty(exports, "ModelUserPropFields", { enumerable: true, get: function () { return UserPropModel_1.ModelUserPropFields; } });
13
13
  var CustomerModel_1 = require("./user/CustomerModel");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;AAAA,8CAA6D;AAApD,sGAAA,SAAS,OAAA;AAAE,4GAAA,eAAe,OAAA;AACnC,kFAAkF;AAClF,sDAAyE;AAAhE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,sDAAyE;AAAhE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,sDAAyE;AAAhE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,gEAAwF;AAA/E,wHAAA,kBAAkB,OAAA;AAAE,8HAAA,wBAAwB,OAAA;AACrD,sDAAyE;AAAhE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,kDAAmE;AAA1D,0GAAA,WAAW,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AACvC,kDAAmE;AAA1D,0GAAA,WAAW,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AACvC,kDAAmE;AAA1D,0GAAA,WAAW,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AACvC,gDAAgE;AAAvD,wGAAA,UAAU,OAAA;AAAE,8GAAA,gBAAgB,OAAA;AAarC,wDAA4E;AAAnE,gHAAA,cAAc,OAAA;AAAE,sHAAA,oBAAoB,OAAA;AAG7C,0DAA6E;AAApE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAE3C,uDAAyE;AAAhE,4GAAA,YAAY,OAAA;AAAE,kHAAA,kBAAkB,OAAA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oIAAA,2BAA2B,OAAA;AAY3D,4EAAyG;AAAhG,kIAAA,uBAAuB,OAAA;AAAE,wIAAA,6BAA6B,OAAA;AAE/D,8DAAoF;AAA3E,oHAAA,gBAAgB,OAAA;AAAE,0HAAA,sBAAsB,OAAA;AAGjD,gEAAqF;AAA5E,kHAAA,eAAe,OAAA;AAAE,wHAAA,qBAAqB,OAAA;AAC/C,kFAAgH;AAAvG,oIAAA,wBAAwB,OAAA;AAAE,0IAAA,8BAA8B,OAAA;AACjE,4EAAuG;AAA9F,8HAAA,qBAAqB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAC3D,4EAAuG;AAA9F,8HAAA,qBAAqB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAC3D,8EAA0G;AAAjG,gIAAA,sBAAsB,OAAA;AAAE,sIAAA,4BAA4B,OAAA;AAC7D,sFAAsH;AAA7G,wIAAA,0BAA0B,OAAA;AAAE,8IAAA,gCAAgC,OAAA;AAQrE,mEAA0F;AAAjF,sHAAA,iBAAiB,OAAA;AAAE,4HAAA,uBAAuB,OAAA;AAEnD,2EAAsG;AAA7F,8HAAA,qBAAqB,OAAA;AAAE,oIAAA,2BAA2B,OAAA","sourcesContent":["export { UserModel, ModelUserFields } from \"./user/UserModel\"\n// export { UserStatusModel, ModelUserStatusFields } from \"./user/UserStatusModel\"\nexport { UserPropModel, ModelUserPropFields } from \"./user/UserPropModel\"\nexport { CustomerModel, ModelCustomerFields } from \"./user/CustomerModel\"\nexport { RetailerModel, ModelRetailerFields } from \"./user/RetailerModel\"\nexport { AdministratorModel, ModelAdministratorFields } from \"./user/AdministratorModel\"\nexport { OperatorModel, ModelOperatorFields } from \"./user/OperatorModel\"\nexport { WorkerModel, ModelWorkerFields } from \"./user/WorkerModel\"\nexport { DriverModel, ModelDriverFields } from \"./user/DriverModel\"\nexport { MemberModel, ModelMemberFields } from \"./user/MemberModel\"\nexport { AgentModel, ModelAgentFields } from \"./user/AgentModel\"\nexport type { ModelUser, ModelUserCreateProps, ModelUserGetProps, ModelUserListProps } from \"./user/UserModel\";\n// export type { ModelUserStatus, ModelUserStatusCreateProps, ModelUserStatusGetProps, ModelUserStatusListProps } from \"./user/UserStatusModel\";\nexport type { ModelUserProp, ModelUserPropCreateProps, ModelUserPropGetProps, ModelUserPropListProps } from \"./user/UserPropModel\";\nexport type { ModelCustomer, ModelCustomerCreateProps, ModelCustomerGetProps, ModelCustomerListProps } from \"./user/CustomerModel\";\nexport type { ModelRetailer, ModelRetailerCreateProps, ModelRetailerGetProps, ModelRetailerListProps } from \"./user/RetailerModel\";\nexport type { ModelAdministrator, ModelAdministratorCreateProps, ModelAdministratorGetProps, ModelAdministratorListProps } from \"./user/AdministratorModel\";\nexport type { ModelOperator, ModelOperatorCreateProps, ModelOperatorGetProps, ModelOperatorListProps } from \"./user/OperatorModel\";\nexport type { ModelWorker, ModelWorkerCreateProps, ModelWorkerGetProps, ModelWorkerListProps } from \"./user/WorkerModel\";\nexport type { ModelDriver, ModelDriverCreateProps, ModelDriverGetProps, ModelDriverListProps } from \"./user/DriverModel\";\nexport type { ModelMember, ModelMemberCreateProps, ModelMemberGetProps, ModelMemberListProps } from \"./user/MemberModel\";\nexport type { ModelAgent, ModelAgentCreateProps, ModelAgentGetProps, ModelAgentListProps } from \"./user/AgentModel\";\n\nexport { AccessKeyModel, ModelAccessKeyFields } from \"./auth/AccessKeyModel\"\nexport type { ModelAccessKey, ModelAccessKeyCreateProps, ModelAccessKeyGetProps, ModelAccessKeyListProps } from \"./auth/AccessKeyModel\";\n\nexport { BusinessModel, ModelBusinessFields } from \"./business/BusinessModel\"\nexport type { ModelBusiness, ModelBusinessCreateProps, ModelBusinessGetProps, ModelBusinessListProps } from \"./business/BusinessModel\";\nexport { AccountModel, ModelAccountFields } from \"./account/AccountModel\"\nexport type { ModelAccount, ModelAccountCreateProps, ModelAccountGetProps, ModelAccountListProps } from \"./account/AccountModel\";\n\nexport { SubscribePlanModel, ModelSubscribePlanFields } from \"./subscription/plan/SubscribePlanModel\"\nexport type { ModelSubscribePlan, ModelSubscribePlanCreateProps, ModelSubscribePlanGetProps, ModelSubscribePlanListProps } from \"./subscription/plan/SubscribePlanModel\";\nexport { AccountSubscribeModel, ModelAccountSubscribeFields } from \"./subscription/account/AccountSubscribeModel\"\nexport type { ModelAccountSubscribe, ModelAccountSubscribeCreateProps, ModelAccountSubscribeGetProps, ModelAccountSubscribeListProps } from \"./subscription/account/AccountSubscribeModel\";\n\nexport { AccessControlRoleModel, ModelAccessControlRoleFields } from \"./access_control/AccessControlRoleModel\"\nexport type { ModelAccessControlRole, ModelAccessControlRoleCreateProps, ModelAccessControlRoleGetProps, ModelAccessControlRoleRemoveProps, ModelAccessControlRoleListProps } from \"./access_control/AccessControlRoleModel\";\nexport { AccessControlRolePolicyModel, ModelAccessControlRolePolicyFields } from \"./access_control/AccessControlRolePolicyModel\"\nexport type { ModelAccessControlRolePolicy, ModelAccessControlRolePolicyCreateProps, ModelAccessControlRolePolicyGetProps, ModelAccessControlRolePolicyRemoveProps, ModelAccessControlRolePolicyListProps } from \"./access_control/AccessControlRolePolicyModel\";\nexport { AccessControlUserRoleModel, ModelAccessControlUserRoleFields } from \"./access_control/AccessControlUserRoleModel\"\nexport type { ModelAccessControlUserRole, ModelAccessControlUserRoleCreateProps, ModelAccessControlUserRoleGetProps, ModelAccessControlUserRoleRemoveProps, ModelAccessControlUserRoleListProps } from \"./access_control/AccessControlUserRoleModel\";\n\nexport { UserBranchModel, ModelUserBranchFields } from \"./branch/UserBranchModel\"\nexport { BranchUserModel, ModelBranchUserFields } from \"./branch_user/BranchUserModel\"\nexport type { ModelUserBranch, ModelUserBranchCreateProps, ModelUserBranchGetProps, ModelUserBranchListProps } from \"./branch/UserBranchModel\";\nexport type { ModelBranchUser, ModelBranchUserCreateProps, ModelBranchUserGetProps, ModelBranchUserListProps } from \"./branch_user/BranchUserModel\";\n\nexport { GroupModel, ModelGroupFields } from \"./group/GroupModel\"\nexport { GroupOwnerModel, ModelGroupOwnerFields } from \"./group/GroupOwnerModel\"\nexport type { ModelGroup, ModelGroupCreateProps, ModelGroupGetProps, ModelGroupListProps } from \"./group/GroupModel\";\nexport type { ModelGroupOwner, ModelGroupOwnerCreateProps, ModelGroupOwnerGetProps, ModelGroupOwnerListProps } from \"./group/GroupOwnerModel\";\n\nexport { FileModel, ModelFileFields } from \"./file/FileModel\"\nexport type { ModelFile, ModelFileCreateProps, ModelFileGetProps, ModelFileListProps } from \"./file/FileModel\";\n\nexport { LocationModel, ModelLocationFields } from \"./location/LocationModel\"\nexport { LocationRackModel, ModelLocationRackFields } from \"./location/LocationRackModel\"\nexport { LocationSlotModel, ModelLocationSlotFields } from \"./location/LocationSlotModel\"\nexport type { ModelLocation, ModelLocationCreateProps, ModelLocationGetProps, ModelLocationListProps } from \"./location/LocationModel\";\nexport type { ModelLocationRack, ModelLocationRackCreateProps, ModelLocationRackGetProps, ModelLocationRackListProps } from \"./location/LocationRackModel\";\nexport type { ModelLocationSlot, ModelLocationSlotCreateProps, ModelLocationSlotGetProps, ModelLocationSlotListProps } from \"./location/LocationSlotModel\";\n\nexport { InjectionFieldModel, ModelInjectionFieldFields } from \"./injection_field/InjectionFieldModel\"\nexport { UserInjectionFieldModel, ModelUserInjectionFieldFields } from \"./injection_field/UserInjectionFieldModel\"\nexport { DocumentInjectionFieldModel, ModelDocumentInjectionFieldFields } from \"./injection_field/DocumentInjectionFieldModel\"\nexport { RepositoryInjectionFieldModel, ModelRepositoryInjectionFieldFields } from \"./injection_field/RepositoryInjectionFieldModel\"\nexport { LogisticInjectionFieldModel, ModelLogisticInjectionFieldFields } from \"./injection_field/LogisticInjectionFieldModel\"\nexport { ItemInjectionFieldModel, ModelItemInjectionFieldFields } from \"./injection_field/ItemInjectionFieldModel\"\nexport type { InjectionFieldTargetTableName } from \"./injection_field/InjectionFieldModel\"\nexport type { ModelUserInjectionField, ModelUserInjectionFieldCreateProps, ModelUserInjectionFieldGetProps, ModelUserInjectionFieldListProps } from \"./injection_field/UserInjectionFieldModel\";\nexport type { ModelDocumentInjectionField, ModelDocumentInjectionFieldCreateProps, ModelDocumentInjectionFieldGetProps, ModelDocumentInjectionFieldListProps } from \"./injection_field/DocumentInjectionFieldModel\";\nexport type { ModelRepositoryInjectionField, ModelRepositoryInjectionFieldCreateProps, ModelRepositoryInjectionFieldGetProps, ModelRepositoryInjectionFieldListProps } from \"./injection_field/RepositoryInjectionFieldModel\";\nexport type { ModelLogisticInjectionField, ModelLogisticInjectionFieldCreateProps, ModelLogisticInjectionFieldGetProps, ModelLogisticInjectionFieldListProps } from \"./injection_field/LogisticInjectionFieldModel\";\nexport type { ModelItemInjectionField, ModelItemInjectionFieldCreateProps, ModelItemInjectionFieldGetProps, ModelItemInjectionFieldListProps } from \"./injection_field/ItemInjectionFieldModel\";\n\nexport { CountryModel, ModelCountryFields } from \"./region/CountryModel\"\nexport { StateModel, ModelStateFields } from \"./region/StateModel\"\nexport { AreaModel, ModelAreaFields } from \"./region/AreaModel\"\nexport type { ModelCountry, ModelCountryCreateProps, ModelCountryGetProps, ModelCountryListProps } from \"./region/CountryModel\";\nexport type { ModelState, ModelStateCreateProps, ModelStateGetProps, ModelStateListProps } from \"./region/StateModel\";\nexport type { ModelArea, ModelAreaCreateProps, ModelAreaGetProps, ModelAreaListProps } from \"./region/AreaModel\";\n\nexport { ProductModel, ModelProductFields } from \"./item/ProductModel\"\nexport { ItemModel, ModelItemFields } from \"./item/ItemModel\"\nexport { BrandModel, ModelBrandFields } from \"./item/BrandModel\"\nexport { UomModel, ModelUomFields } from \"./item/UomModel\"\nexport { CategoryModel, ModelCategoryFields } from \"./item/CategoryModel\"\nexport type { ModelProduct, ModelProductCreateProps, ModelProductGetProps, ModelProductListProps } from \"./item/ProductModel\";\nexport type { ModelItem, ModelItemCreateProps, ModelItemGetProps, ModelItemListProps } from \"./item/ItemModel\";\nexport type { ModelBrand, ModelBrandCreateProps, ModelBrandGetProps, ModelBrandListProps } from \"./item/BrandModel\";\nexport type { ModelUom, ModelUomCreateProps, ModelUomGetProps, ModelUomListProps } from \"./item/UomModel\";\nexport type { ModelCategory, ModelCategoryCreateProps, ModelCategoryGetProps, ModelCategoryListProps } from \"./item/CategoryModel\";\n\nexport { DocumentModel, ModelDocumentFields } from \"./document/DocumentModel\"\n// export { DocumentNumberModel, ModelDocumentNumberFields } from \"./document/DocumentNumberModel_unuse\"\nexport { DocumentTotalModel, ModelDocumentTotalFields } from \"./document/DocumentTotalModel\"\nexport { DocumentProfileModel, ModelDocumentProfileFields } from \"./document/DocumentProfileModel\"\nexport { DocumentAmountModel, ModelDocumentAmountFields } from \"./document/DocumentAmountModel\"\nexport { DocumentLocationModel, ModelDocumentLocationFields } from \"./document/DocumentLocationModel\"\n// export { DocumentPropModel, ModelDocumentPropFields } from \"./document/DocumentPropModel\"\nexport { DocumentPaymentModel, ModelDocumentPaymentFields } from \"./document/DocumentPaymentModel\"\nexport { DocumentItemModel, ModelDocumentItemFields } from \"./document/DocumentItemModel\"\nexport { DocumentDocumentModel, ModelDocumentDocumentFields } from \"./document/DocumentDocumentModel\"\nexport type { ModelDocument, ModelDocumentCreateProps, ModelDocumentGetProps, ModelDocumentListProps } from \"./document/DocumentModel\";\nexport type { ModelDocumentProfile, ModelDocumentProfileCreateProps, ModelDocumentProfileGetProps, ModelDocumentProfileListProps } from \"./document/DocumentProfileModel\";\nexport type { ModelDocumentAmount, ModelDocumentAmountCreateProps, ModelDocumentAmountGetProps, ModelDocumentAmountListProps } from \"./document/DocumentAmountModel\";\n// export type { ModelDocumentNumber, ModelDocumentNumberCreateProps, ModelDocumentNumberGetProps, ModelDocumentNumberListProps } from \"./document/DocumentNumberModel_unuse\";\nexport type { ModelDocumentLocation, ModelDocumentLocationCreateProps, ModelDocumentLocationGetProps, ModelDocumentLocationListProps } from \"./document/DocumentLocationModel\";\n// export type { ModelDocumentProp, ModelDocumentPropCreateProps, ModelDocumentPropGetProps, ModelDocumentPropListProps } from \"./document/DocumentPropModel\";\nexport type { ModelDocumentPayment, ModelDocumentPaymentCreateProps, ModelDocumentPaymentGetProps, ModelDocumentPaymentListProps } from \"./document/DocumentPaymentModel\";\nexport type { ModelDocumentTotal, ModelDocumentTotalCreateProps, ModelDocumentTotalGetProps, ModelDocumentTotalListProps } from \"./document/DocumentTotalModel\";\nexport type { ModelDocumentItem, ModelDocumentItemCreateProps, ModelDocumentItemGetProps, ModelDocumentItemListProps } from \"./document/DocumentItemModel\";\nexport type { ModelDocumentDocument, ModelDocumentDocumentCreateProps, ModelDocumentDocumentGetProps, ModelDocumentDocumentListProps } from \"./document/DocumentDocumentModel\";\n\nexport { NumberDateSequenceModel, ModelNumberDateSequenceFields } from \"./others/NumberDateSequenceModel\"\nexport type { ModelNumberDateSequence, ModelNumberDateSequenceCreateProps, ModelNumberDateSequenceGetProps, ModelNumberDateSequenceListProps } from \"./others/NumberDateSequenceModel\";\nexport { OneTimeCodeModel, ModelOneTimeCodeFields } from \"./others/OneTimeCodeModel\"\nexport type { ModelOneTimeCode, ModelOneTimeCodeCreateProps, ModelOneTimeCodeGetProps, ModelOneTimeCodeListProps } from \"./others/OneTimeCodeModel\";\n\nexport { RepositoryModel, ModelRepositoryFields } from \"./repository/RepositoryModel\"\nexport { RepositoryContainerModel, ModelRepositoryContainerFields } from \"./repository/RepositoryContainerModel\"\nexport { RepositoryPalletModel, ModelRepositoryPalletFields } from \"./repository/RepositoryPalletModel\"\nexport { RepositoryCartonModel, ModelRepositoryCartonFields } from \"./repository/RepositoryCartonModel\"\nexport { RepositoryPackageModel, ModelRepositoryPackageFields } from \"./repository/RepositoryPackageModel\"\nexport { RepositoryPackageItemModel, ModelRepositoryPackageItemFields } from \"./repository/RepositoryPackageItemModel\"\nexport type { ModelRepository, ModelRepositoryCreateProps, ModelRepositoryGetProps, ModelRepositoryListProps } from \"./repository/RepositoryModel\";\nexport type { ModelRepositoryContainer, ModelRepositoryContainerCreateProps, ModelRepositoryContainerGetProps, ModelRepositoryContainerListProps } from \"./repository/RepositoryContainerModel\";\nexport type { ModelRepositoryPallet, ModelRepositoryPalletCreateProps, ModelRepositoryPalletGetProps, ModelRepositoryPalletListProps } from \"./repository/RepositoryPalletModel\";\nexport type { ModelRepositoryCarton, ModelRepositoryCartonCreateProps, ModelRepositoryCartonGetProps, ModelRepositoryCartonListProps } from \"./repository/RepositoryCartonModel\";\nexport type { ModelRepositoryPackage, ModelRepositoryPackageCreateProps, ModelRepositoryPackageGetProps, ModelRepositoryPackageListProps } from \"./repository/RepositoryPackageModel\";\nexport type { ModelRepositoryPackageItem, ModelRepositoryPackageItemCreateProps, ModelRepositoryPackageItemGetProps, ModelRepositoryPackageItemListProps } from \"./repository/RepositoryPackageItemModel\";\n\nexport { SchedulerLogModel, ModelSchedulerLogFields } from \"./scheduler/SchedulerLogModel\"\nexport type { ModelSchedulerLog, ModelSchedulerLogCreateProps, ModelSchedulerLogGetProps, ModelSchedulerLogRemoveProps, ModelSchedulerLogListProps } from \"./scheduler/SchedulerLogModel\";\nexport { SchedulerRequestModel, ModelSchedulerRequestFields } from \"./scheduler/SchedulerRequestModel\"\nexport type { ModelSchedulerRequest, ModelSchedulerRequestCreateProps, ModelSchedulerRequestGetProps, ModelSchedulerRequestRemoveProps, ModelSchedulerRequestListProps } from \"./scheduler/SchedulerRequestModel\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;AAAA,8CAA6D;AAApD,sGAAA,SAAS,OAAA;AAAE,4GAAA,eAAe,OAAA;AACnC,kFAAkF;AAClF,4DAA+E;AAAtE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,sDAAyE;AAAhE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,sDAAyE;AAAhE,8GAAA,aAAa,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC3C,gEAAwF;AAA/E,wHAAA,kBAAkB,OAAA;AAAE,8HAAA,wBAAwB,OAAA;AACrD,sDA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HAAA,qBAAqB,OAAA;AAAE,oIAAA,2BAA2B,OAAA","sourcesContent":["export { UserModel, ModelUserFields } from \"./user/UserModel\"\n// export { UserStatusModel, ModelUserStatusFields } from \"./user/UserStatusModel\"\nexport { UserPropModel, ModelUserPropFields } from \"./user/unuse/UserPropModel\"\nexport { CustomerModel, ModelCustomerFields } from \"./user/CustomerModel\"\nexport { RetailerModel, ModelRetailerFields } from \"./user/RetailerModel\"\nexport { AdministratorModel, ModelAdministratorFields } from \"./user/AdministratorModel\"\nexport { OperatorModel, ModelOperatorFields } from \"./user/OperatorModel\"\nexport { WorkerModel, ModelWorkerFields } from \"./user/WorkerModel\"\nexport { DriverModel, ModelDriverFields } from \"./user/DriverModel\"\nexport { MemberModel, ModelMemberFields } from \"./user/MemberModel\"\nexport { AgentModel, ModelAgentFields } from \"./user/AgentModel\"\nexport type { ModelUser, ModelUserCreateProps, ModelUserGetProps, ModelUserListProps } from \"./user/UserModel\";\n// export type { ModelUserStatus, ModelUserStatusCreateProps, ModelUserStatusGetProps, ModelUserStatusListProps } from \"./user/UserStatusModel\";\nexport type { ModelUserProp, ModelUserPropCreateProps, ModelUserPropGetProps, ModelUserPropListProps } from \"./user/unuse/UserPropModel\";\nexport type { ModelCustomer, ModelCustomerCreateProps, ModelCustomerGetProps, ModelCustomerListProps } from \"./user/CustomerModel\";\nexport type { ModelRetailer, ModelRetailerCreateProps, ModelRetailerGetProps, ModelRetailerListProps } from \"./user/RetailerModel\";\nexport type { ModelAdministrator, ModelAdministratorCreateProps, ModelAdministratorGetProps, ModelAdministratorListProps } from \"./user/AdministratorModel\";\nexport type { ModelOperator, ModelOperatorCreateProps, ModelOperatorGetProps, ModelOperatorListProps } from \"./user/OperatorModel\";\nexport type { ModelWorker, ModelWorkerCreateProps, ModelWorkerGetProps, ModelWorkerListProps } from \"./user/WorkerModel\";\nexport type { ModelDriver, ModelDriverCreateProps, ModelDriverGetProps, ModelDriverListProps } from \"./user/DriverModel\";\nexport type { ModelMember, ModelMemberCreateProps, ModelMemberGetProps, ModelMemberListProps } from \"./user/MemberModel\";\nexport type { ModelAgent, ModelAgentCreateProps, ModelAgentGetProps, ModelAgentListProps } from \"./user/AgentModel\";\n\nexport { AccessKeyModel, ModelAccessKeyFields } from \"./auth/AccessKeyModel\"\nexport type { ModelAccessKey, ModelAccessKeyCreateProps, ModelAccessKeyGetProps, ModelAccessKeyListProps } from \"./auth/AccessKeyModel\";\n\nexport { BusinessModel, ModelBusinessFields } from \"./business/BusinessModel\"\nexport type { ModelBusiness, ModelBusinessCreateProps, ModelBusinessGetProps, ModelBusinessListProps } from \"./business/BusinessModel\";\nexport { AccountModel, ModelAccountFields } from \"./account/AccountModel\"\nexport type { ModelAccount, ModelAccountCreateProps, ModelAccountGetProps, ModelAccountListProps } from \"./account/AccountModel\";\n\nexport { SubscribePlanModel, ModelSubscribePlanFields } from \"./subscription/plan/SubscribePlanModel\"\nexport type { ModelSubscribePlan, ModelSubscribePlanCreateProps, ModelSubscribePlanGetProps, ModelSubscribePlanListProps } from \"./subscription/plan/SubscribePlanModel\";\nexport { AccountSubscribeModel, ModelAccountSubscribeFields } from \"./subscription/account/AccountSubscribeModel\"\nexport type { ModelAccountSubscribe, ModelAccountSubscribeCreateProps, ModelAccountSubscribeGetProps, ModelAccountSubscribeListProps } from \"./subscription/account/AccountSubscribeModel\";\n\nexport { AccessControlRoleModel, ModelAccessControlRoleFields } from \"./access_control/AccessControlRoleModel\"\nexport type { ModelAccessControlRole, ModelAccessControlRoleCreateProps, ModelAccessControlRoleGetProps, ModelAccessControlRoleRemoveProps, ModelAccessControlRoleListProps } from \"./access_control/AccessControlRoleModel\";\nexport { AccessControlRolePolicyModel, ModelAccessControlRolePolicyFields } from \"./access_control/AccessControlRolePolicyModel\"\nexport type { ModelAccessControlRolePolicy, ModelAccessControlRolePolicyCreateProps, ModelAccessControlRolePolicyGetProps, ModelAccessControlRolePolicyRemoveProps, ModelAccessControlRolePolicyListProps } from \"./access_control/AccessControlRolePolicyModel\";\nexport { AccessControlUserRoleModel, ModelAccessControlUserRoleFields } from \"./access_control/AccessControlUserRoleModel\"\nexport type { ModelAccessControlUserRole, ModelAccessControlUserRoleCreateProps, ModelAccessControlUserRoleGetProps, ModelAccessControlUserRoleRemoveProps, ModelAccessControlUserRoleListProps } from \"./access_control/AccessControlUserRoleModel\";\n\nexport { UserBranchModel, ModelUserBranchFields } from \"./branch/UserBranchModel\"\nexport { BranchUserModel, ModelBranchUserFields } from \"./branch_user/BranchUserModel\"\nexport type { ModelUserBranch, ModelUserBranchCreateProps, ModelUserBranchGetProps, ModelUserBranchListProps } from \"./branch/UserBranchModel\";\nexport type { ModelBranchUser, ModelBranchUserCreateProps, ModelBranchUserGetProps, ModelBranchUserListProps } from \"./branch_user/BranchUserModel\";\n\nexport { GroupModel, ModelGroupFields } from \"./group/GroupModel\"\nexport { GroupOwnerModel, ModelGroupOwnerFields } from \"./group/GroupOwnerModel\"\nexport type { ModelGroup, ModelGroupCreateProps, ModelGroupGetProps, ModelGroupListProps } from \"./group/GroupModel\";\nexport type { ModelGroupOwner, ModelGroupOwnerCreateProps, ModelGroupOwnerGetProps, ModelGroupOwnerListProps } from \"./group/GroupOwnerModel\";\n\nexport { FileModel, ModelFileFields } from \"./file/FileModel\"\nexport type { ModelFile, ModelFileCreateProps, ModelFileGetProps, ModelFileListProps } from \"./file/FileModel\";\n\nexport { LocationModel, ModelLocationFields } from \"./location/LocationModel\"\nexport { LocationRackModel, ModelLocationRackFields } from \"./location/LocationRackModel\"\nexport { LocationSlotModel, ModelLocationSlotFields } from \"./location/LocationSlotModel\"\nexport type { ModelLocation, ModelLocationCreateProps, ModelLocationGetProps, ModelLocationListProps } from \"./location/LocationModel\";\nexport type { ModelLocationRack, ModelLocationRackCreateProps, ModelLocationRackGetProps, ModelLocationRackListProps } from \"./location/LocationRackModel\";\nexport type { ModelLocationSlot, ModelLocationSlotCreateProps, ModelLocationSlotGetProps, ModelLocationSlotListProps } from \"./location/LocationSlotModel\";\n\nexport { InjectionFieldModel, ModelInjectionFieldFields } from \"./injection_field/InjectionFieldModel\"\nexport { UserInjectionFieldModel, ModelUserInjectionFieldFields } from \"./injection_field/UserInjectionFieldModel\"\nexport { DocumentInjectionFieldModel, ModelDocumentInjectionFieldFields } from \"./injection_field/DocumentInjectionFieldModel\"\nexport { RepositoryInjectionFieldModel, ModelRepositoryInjectionFieldFields } from \"./injection_field/RepositoryInjectionFieldModel\"\nexport { LogisticInjectionFieldModel, ModelLogisticInjectionFieldFields } from \"./injection_field/LogisticInjectionFieldModel\"\nexport { ItemInjectionFieldModel, ModelItemInjectionFieldFields } from \"./injection_field/ItemInjectionFieldModel\"\nexport type { InjectionFieldTargetTableName } from \"./injection_field/InjectionFieldModel\"\nexport type { ModelUserInjectionField, ModelUserInjectionFieldCreateProps, ModelUserInjectionFieldGetProps, ModelUserInjectionFieldListProps } from \"./injection_field/UserInjectionFieldModel\";\nexport type { ModelDocumentInjectionField, ModelDocumentInjectionFieldCreateProps, ModelDocumentInjectionFieldGetProps, ModelDocumentInjectionFieldListProps } from \"./injection_field/DocumentInjectionFieldModel\";\nexport type { ModelRepositoryInjectionField, ModelRepositoryInjectionFieldCreateProps, ModelRepositoryInjectionFieldGetProps, ModelRepositoryInjectionFieldListProps } from \"./injection_field/RepositoryInjectionFieldModel\";\nexport type { ModelLogisticInjectionField, ModelLogisticInjectionFieldCreateProps, ModelLogisticInjectionFieldGetProps, ModelLogisticInjectionFieldListProps } from \"./injection_field/LogisticInjectionFieldModel\";\nexport type { ModelItemInjectionField, ModelItemInjectionFieldCreateProps, ModelItemInjectionFieldGetProps, ModelItemInjectionFieldListProps } from \"./injection_field/ItemInjectionFieldModel\";\n\nexport { CountryModel, ModelCountryFields } from \"./region/CountryModel\"\nexport { StateModel, ModelStateFields } from \"./region/StateModel\"\nexport { AreaModel, ModelAreaFields } from \"./region/AreaModel\"\nexport type { ModelCountry, ModelCountryCreateProps, ModelCountryGetProps, ModelCountryListProps } from \"./region/CountryModel\";\nexport type { ModelState, ModelStateCreateProps, ModelStateGetProps, ModelStateListProps } from \"./region/StateModel\";\nexport type { ModelArea, ModelAreaCreateProps, ModelAreaGetProps, ModelAreaListProps } from \"./region/AreaModel\";\n\nexport { ProductModel, ModelProductFields } from \"./item/ProductModel\"\nexport { ItemModel, ModelItemFields } from \"./item/ItemModel\"\nexport { BrandModel, ModelBrandFields } from \"./item/BrandModel\"\nexport { UomModel, ModelUomFields } from \"./item/UomModel\"\nexport { CategoryModel, ModelCategoryFields } from \"./item/CategoryModel\"\nexport type { ModelProduct, ModelProductCreateProps, ModelProductGetProps, ModelProductListProps } from \"./item/ProductModel\";\nexport type { ModelItem, ModelItemCreateProps, ModelItemGetProps, ModelItemListProps } from \"./item/ItemModel\";\nexport type { ModelBrand, ModelBrandCreateProps, ModelBrandGetProps, ModelBrandListProps } from \"./item/BrandModel\";\nexport type { ModelUom, ModelUomCreateProps, ModelUomGetProps, ModelUomListProps } from \"./item/UomModel\";\nexport type { ModelCategory, ModelCategoryCreateProps, ModelCategoryGetProps, ModelCategoryListProps } from \"./item/CategoryModel\";\n\nexport { DocumentModel, ModelDocumentFields } from \"./document/DocumentModel\"\n// export { DocumentNumberModel, ModelDocumentNumberFields } from \"./document/DocumentNumberModel_unuse\"\nexport { DocumentTotalModel, ModelDocumentTotalFields } from \"./document/DocumentTotalModel\"\nexport { DocumentProfileModel, ModelDocumentProfileFields } from \"./document/DocumentProfileModel\"\nexport { DocumentAmountModel, ModelDocumentAmountFields } from \"./document/DocumentAmountModel\"\nexport { DocumentLocationModel, ModelDocumentLocationFields } from \"./document/DocumentLocationModel\"\n// export { DocumentPropModel, ModelDocumentPropFields } from \"./document/DocumentPropModel\"\nexport { DocumentPaymentModel, ModelDocumentPaymentFields } from \"./document/DocumentPaymentModel\"\nexport { DocumentItemModel, ModelDocumentItemFields } from \"./document/DocumentItemModel\"\nexport { DocumentDocumentModel, ModelDocumentDocumentFields } from \"./document/DocumentDocumentModel\"\nexport type { ModelDocument, ModelDocumentCreateProps, ModelDocumentGetProps, ModelDocumentListProps } from \"./document/DocumentModel\";\nexport type { ModelDocumentProfile, ModelDocumentProfileCreateProps, ModelDocumentProfileGetProps, ModelDocumentProfileListProps } from \"./document/DocumentProfileModel\";\nexport type { ModelDocumentAmount, ModelDocumentAmountCreateProps, ModelDocumentAmountGetProps, ModelDocumentAmountListProps } from \"./document/DocumentAmountModel\";\n// export type { ModelDocumentNumber, ModelDocumentNumberCreateProps, ModelDocumentNumberGetProps, ModelDocumentNumberListProps } from \"./document/DocumentNumberModel_unuse\";\nexport type { ModelDocumentLocation, ModelDocumentLocationCreateProps, ModelDocumentLocationGetProps, ModelDocumentLocationListProps } from \"./document/DocumentLocationModel\";\n// export type { ModelDocumentProp, ModelDocumentPropCreateProps, ModelDocumentPropGetProps, ModelDocumentPropListProps } from \"./document/DocumentPropModel\";\nexport type { ModelDocumentPayment, ModelDocumentPaymentCreateProps, ModelDocumentPaymentGetProps, ModelDocumentPaymentListProps } from \"./document/DocumentPaymentModel\";\nexport type { ModelDocumentTotal, ModelDocumentTotalCreateProps, ModelDocumentTotalGetProps, ModelDocumentTotalListProps } from \"./document/DocumentTotalModel\";\nexport type { ModelDocumentItem, ModelDocumentItemCreateProps, ModelDocumentItemGetProps, ModelDocumentItemListProps } from \"./document/DocumentItemModel\";\nexport type { ModelDocumentDocument, ModelDocumentDocumentCreateProps, ModelDocumentDocumentGetProps, ModelDocumentDocumentListProps } from \"./document/DocumentDocumentModel\";\n\nexport { NumberDateSequenceModel, ModelNumberDateSequenceFields } from \"./others/NumberDateSequenceModel\"\nexport type { ModelNumberDateSequence, ModelNumberDateSequenceCreateProps, ModelNumberDateSequenceGetProps, ModelNumberDateSequenceListProps } from \"./others/NumberDateSequenceModel\";\nexport { OneTimeCodeModel, ModelOneTimeCodeFields } from \"./others/OneTimeCodeModel\"\nexport type { ModelOneTimeCode, ModelOneTimeCodeCreateProps, ModelOneTimeCodeGetProps, ModelOneTimeCodeListProps } from \"./others/OneTimeCodeModel\";\n\nexport { RepositoryModel, ModelRepositoryFields } from \"./repository/RepositoryModel\"\nexport { RepositoryContainerModel, ModelRepositoryContainerFields } from \"./repository/RepositoryContainerModel\"\nexport { RepositoryPalletModel, ModelRepositoryPalletFields } from \"./repository/RepositoryPalletModel\"\nexport { RepositoryCartonModel, ModelRepositoryCartonFields } from \"./repository/RepositoryCartonModel\"\nexport { RepositoryPackageModel, ModelRepositoryPackageFields } from \"./repository/RepositoryPackageModel\"\nexport { RepositoryPackageItemModel, ModelRepositoryPackageItemFields } from \"./repository/RepositoryPackageItemModel\"\nexport type { ModelRepository, ModelRepositoryCreateProps, ModelRepositoryGetProps, ModelRepositoryListProps } from \"./repository/RepositoryModel\";\nexport type { ModelRepositoryContainer, ModelRepositoryContainerCreateProps, ModelRepositoryContainerGetProps, ModelRepositoryContainerListProps } from \"./repository/RepositoryContainerModel\";\nexport type { ModelRepositoryPallet, ModelRepositoryPalletCreateProps, ModelRepositoryPalletGetProps, ModelRepositoryPalletListProps } from \"./repository/RepositoryPalletModel\";\nexport type { ModelRepositoryCarton, ModelRepositoryCartonCreateProps, ModelRepositoryCartonGetProps, ModelRepositoryCartonListProps } from \"./repository/RepositoryCartonModel\";\nexport type { ModelRepositoryPackage, ModelRepositoryPackageCreateProps, ModelRepositoryPackageGetProps, ModelRepositoryPackageListProps } from \"./repository/RepositoryPackageModel\";\nexport type { ModelRepositoryPackageItem, ModelRepositoryPackageItemCreateProps, ModelRepositoryPackageItemGetProps, ModelRepositoryPackageItemListProps } from \"./repository/RepositoryPackageItemModel\";\n\nexport { SchedulerLogModel, ModelSchedulerLogFields } from \"./scheduler/SchedulerLogModel\"\nexport type { ModelSchedulerLog, ModelSchedulerLogCreateProps, ModelSchedulerLogGetProps, ModelSchedulerLogRemoveProps, ModelSchedulerLogListProps } from \"./scheduler/SchedulerLogModel\";\nexport { SchedulerRequestModel, ModelSchedulerRequestFields } from \"./scheduler/SchedulerRequestModel\"\nexport type { ModelSchedulerRequest, ModelSchedulerRequestCreateProps, ModelSchedulerRequestGetProps, ModelSchedulerRequestRemoveProps, ModelSchedulerRequestListProps } from \"./scheduler/SchedulerRequestModel\";\n"]}
@@ -0,0 +1,256 @@
1
+ import { user_props, Prisma } from "@prisma/client";
2
+ import { DefaultOmitFields } from "../../../lib";
3
+ import { DefaultServiceProps } from "../../../utils";
4
+ declare const primaryKey = "user_prop_id";
5
+ export declare const ModelUserPropFields: {
6
+ createdatetime: "createdatetime";
7
+ createuserid: "createuserid";
8
+ updatedatetime: "updatedatetime";
9
+ updateuserid: "updateuserid";
10
+ isdelete: "isdelete";
11
+ istrash: "istrash";
12
+ accountid: "accountid";
13
+ type: "type";
14
+ user_id: "user_id";
15
+ user_prop_id: "user_prop_id";
16
+ props_value: "props_value";
17
+ props_id: "props_id";
18
+ props_numeric: "props_numeric";
19
+ props_timestamp: "props_timestamp";
20
+ props_integer: "props_integer";
21
+ };
22
+ export type ModelUserProp = user_props;
23
+ export type ModelUserPropOmitFields = typeof primaryKey | DefaultOmitFields;
24
+ export type ModelUserPropCreateProps = {
25
+ data: Omit<Prisma.user_propsUncheckedCreateInput, ModelUserPropOmitFields>;
26
+ };
27
+ export type ModelUserPropUpdateProps = {
28
+ id: number;
29
+ data: Omit<Prisma.user_propsUncheckedUpdateInput, ModelUserPropOmitFields>;
30
+ };
31
+ export type ModelUserPropTrashProps = {
32
+ ids: number[];
33
+ };
34
+ export type ModelUserPropRemoveProps = {
35
+ id: number;
36
+ };
37
+ export type ModelUserPropGetProps = {
38
+ id: number;
39
+ };
40
+ export type ModelUserPropListProps = {
41
+ where?: Prisma.user_propsWhereInput;
42
+ orderBy?: Prisma.user_propsOrderByWithRelationInput | Prisma.user_propsOrderByWithRelationInput[];
43
+ offset?: number;
44
+ limit?: number;
45
+ };
46
+ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
47
+ selectedPrisma: any;
48
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "type" | "user_id" | "user_prop_id" | "props_value" | "props_id" | "props_numeric" | "props_timestamp" | "props_integer";
49
+ getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
50
+ name: string;
51
+ type: string;
52
+ }[]>;
53
+ create: ({ data, }: {
54
+ data: Omit<any, DefaultOmitFields>;
55
+ }) => Promise<{
56
+ createdatetime: Date | null;
57
+ createuserid: bigint;
58
+ updatedatetime: Date | null;
59
+ updateuserid: bigint;
60
+ isdelete: boolean | null;
61
+ istrash: boolean | null;
62
+ accountid: bigint;
63
+ type: string | null;
64
+ user_id: bigint | null;
65
+ user_prop_id: bigint;
66
+ props_value: string | null;
67
+ props_id: bigint;
68
+ props_numeric: Prisma.Decimal;
69
+ props_timestamp: Date | null;
70
+ props_integer: bigint | null;
71
+ }>;
72
+ createMany: ({ dataList, disableRollback, }: {
73
+ dataList: Omit<any, DefaultOmitFields>[];
74
+ disableRollback?: boolean;
75
+ }) => Promise<{
76
+ createdatetime: Date | null;
77
+ createuserid: bigint;
78
+ updatedatetime: Date | null;
79
+ updateuserid: bigint;
80
+ isdelete: boolean | null;
81
+ istrash: boolean | null;
82
+ accountid: bigint;
83
+ type: string | null;
84
+ user_id: bigint | null;
85
+ user_prop_id: bigint;
86
+ props_value: string | null;
87
+ props_id: bigint;
88
+ props_numeric: Prisma.Decimal;
89
+ props_timestamp: Date | null;
90
+ props_integer: bigint | null;
91
+ }[]>;
92
+ get: ({ id, where, include, }: {
93
+ id?: number;
94
+ where?: Record<string, any>;
95
+ include?: any;
96
+ }) => Promise<{
97
+ createdatetime: Date | null;
98
+ createuserid: bigint;
99
+ updatedatetime: Date | null;
100
+ updateuserid: bigint;
101
+ isdelete: boolean | null;
102
+ istrash: boolean | null;
103
+ accountid: bigint;
104
+ type: string | null;
105
+ user_id: bigint | null;
106
+ user_prop_id: bigint;
107
+ props_value: string | null;
108
+ props_id: bigint;
109
+ props_numeric: Prisma.Decimal;
110
+ props_timestamp: Date | null;
111
+ props_integer: bigint | null;
112
+ } | null>;
113
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
114
+ createdatetime: Date | null;
115
+ createuserid: bigint;
116
+ updatedatetime: Date | null;
117
+ updateuserid: bigint;
118
+ isdelete: boolean | null;
119
+ istrash: boolean | null;
120
+ accountid: bigint;
121
+ type: string | null;
122
+ user_id: bigint | null;
123
+ user_prop_id: bigint;
124
+ props_value: string | null;
125
+ props_id: bigint;
126
+ props_numeric: Prisma.Decimal;
127
+ props_timestamp: Date | null;
128
+ props_integer: bigint | null;
129
+ }[]>;
130
+ count: ({ where, }?: {
131
+ where?: Record<string, any>;
132
+ }) => Promise<number>;
133
+ aggregate: ({ field, operation, where, }: {
134
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "type" | "user_id" | "user_prop_id" | "props_value" | "props_id" | "props_numeric" | "props_timestamp" | "props_integer";
135
+ operation?: "sum" | "avg" | "min" | "max" | "count";
136
+ where?: Record<string, any>;
137
+ }) => Promise<number>;
138
+ update: ({ id, where, data, disableRollback }: {
139
+ id?: number;
140
+ where?: Record<string, any>;
141
+ data: Partial<{
142
+ createdatetime: Date | null;
143
+ createuserid: bigint;
144
+ updatedatetime: Date | null;
145
+ updateuserid: bigint;
146
+ isdelete: boolean | null;
147
+ istrash: boolean | null;
148
+ accountid: bigint;
149
+ type: string | null;
150
+ user_id: bigint | null;
151
+ user_prop_id: bigint;
152
+ props_value: string | null;
153
+ props_id: bigint;
154
+ props_numeric: Prisma.Decimal;
155
+ props_timestamp: Date | null;
156
+ props_integer: bigint | null;
157
+ }>;
158
+ disableRollback?: boolean;
159
+ }) => Promise<{
160
+ createdatetime: Date | null;
161
+ createuserid: bigint;
162
+ updatedatetime: Date | null;
163
+ updateuserid: bigint;
164
+ isdelete: boolean | null;
165
+ istrash: boolean | null;
166
+ accountid: bigint;
167
+ type: string | null;
168
+ user_id: bigint | null;
169
+ user_prop_id: bigint;
170
+ props_value: string | null;
171
+ props_id: bigint;
172
+ props_numeric: Prisma.Decimal;
173
+ props_timestamp: Date | null;
174
+ props_integer: bigint | null;
175
+ }>;
176
+ updateMany: ({ dataList, disableRollback, }: {
177
+ dataList: {
178
+ where: Record<string, any>;
179
+ data: Partial<{
180
+ createdatetime: Date | null;
181
+ createuserid: bigint;
182
+ updatedatetime: Date | null;
183
+ updateuserid: bigint;
184
+ isdelete: boolean | null;
185
+ istrash: boolean | null;
186
+ accountid: bigint;
187
+ type: string | null;
188
+ user_id: bigint | null;
189
+ user_prop_id: bigint;
190
+ props_value: string | null;
191
+ props_id: bigint;
192
+ props_numeric: Prisma.Decimal;
193
+ props_timestamp: Date | null;
194
+ props_integer: bigint | null;
195
+ }>;
196
+ }[];
197
+ disableRollback?: boolean;
198
+ }) => Promise<{
199
+ createdatetime: Date | null;
200
+ createuserid: bigint;
201
+ updatedatetime: Date | null;
202
+ updateuserid: bigint;
203
+ isdelete: boolean | null;
204
+ istrash: boolean | null;
205
+ accountid: bigint;
206
+ type: string | null;
207
+ user_id: bigint | null;
208
+ user_prop_id: bigint;
209
+ props_value: string | null;
210
+ props_id: bigint;
211
+ props_numeric: Prisma.Decimal;
212
+ props_timestamp: Date | null;
213
+ props_integer: bigint | null;
214
+ }[]>;
215
+ trash: ({ ids }: {
216
+ ids: number[];
217
+ }) => Promise<{
218
+ createdatetime: Date | null;
219
+ createuserid: bigint;
220
+ updatedatetime: Date | null;
221
+ updateuserid: bigint;
222
+ isdelete: boolean | null;
223
+ istrash: boolean | null;
224
+ accountid: bigint;
225
+ type: string | null;
226
+ user_id: bigint | null;
227
+ user_prop_id: bigint;
228
+ props_value: string | null;
229
+ props_id: bigint;
230
+ props_numeric: Prisma.Decimal;
231
+ props_timestamp: Date | null;
232
+ props_integer: bigint | null;
233
+ }[]>;
234
+ remove: ({ ids, where }: {
235
+ ids?: number[];
236
+ where?: Record<string, any>;
237
+ }) => Promise<{
238
+ createdatetime: Date | null;
239
+ createuserid: bigint;
240
+ updatedatetime: Date | null;
241
+ updateuserid: bigint;
242
+ isdelete: boolean | null;
243
+ istrash: boolean | null;
244
+ accountid: bigint;
245
+ type: string | null;
246
+ user_id: bigint | null;
247
+ user_prop_id: bigint;
248
+ props_value: string | null;
249
+ props_id: bigint;
250
+ props_numeric: Prisma.Decimal;
251
+ props_timestamp: Date | null;
252
+ props_integer: bigint | null;
253
+ }[]>;
254
+ raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
255
+ };
256
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPropModel = exports.ModelUserPropFields = void 0;
4
+ const lib_1 = require("../../../lib");
5
+ const primaryKey = "user_prop_id";
6
+ exports.ModelUserPropFields = (0, lib_1.getFieldsByType)();
7
+ const UserPropModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
8
+ ...rest,
9
+ modelName: "user_props",
10
+ primaryKey
11
+ });
12
+ exports.UserPropModel = UserPropModel;
13
+ //# sourceMappingURL=UserPropModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserPropModel.js","sourceRoot":"","sources":["../../../../src/models/user/unuse/UserPropModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,cAAc,CAAC;AAErB,QAAA,mBAAmB,GAAG,IAAA,qBAAe,GAAc,CAAC;AAkC1D,MAAM,aAAa,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAC9D,IAAA,kBAAY,EAAqE;IAC7E,GAAG,IAAI;IACP,SAAS,EAAE,YAAY;IACvB,UAAU;CACb,CAAC,CAAC;AALM,QAAA,aAAa,iBAKnB","sourcesContent":["import { PrismaClient, user_props, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"user_prop_id\";\n\nexport const ModelUserPropFields = getFieldsByType<user_props>();\n\nexport type ModelUserProp = user_props;\n\nexport type ModelUserPropOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelUserPropCreateProps = {\n data: Omit<Prisma.user_propsUncheckedCreateInput, ModelUserPropOmitFields>;\n};\n\nexport type ModelUserPropUpdateProps = {\n id: number;\n data: Omit<Prisma.user_propsUncheckedUpdateInput, ModelUserPropOmitFields>;\n};\n\nexport type ModelUserPropTrashProps = {\n ids: number[];\n};\n\nexport type ModelUserPropRemoveProps = {\n id: number;\n};\n\nexport type ModelUserPropGetProps = {\n id: number;\n};\n\nexport type ModelUserPropListProps = {\n where?: Prisma.user_propsWhereInput;\n orderBy?: Prisma.user_propsOrderByWithRelationInput | Prisma.user_propsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const UserPropModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"user_props\", PrismaClient[\"user_props\"], user_props>({\n ...rest,\n modelName: \"user_props\",\n primaryKey\n });\n"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
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
+ const child_process_1 = require("child_process");
7
+ const path_1 = __importDefault(require("path"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const dotenv_1 = __importDefault(require("dotenv"));
10
+ // read --env flag from args, default to development
11
+ const args = process.argv.slice(2);
12
+ const envFlag = args.find(a => a.startsWith('--env='));
13
+ const envName = envFlag ? envFlag.split('=')[1] : 'development';
14
+ const envFile = path_1.default.resolve(process.cwd(), `.env.${envName}`);
15
+ if (!fs_1.default.existsSync(envFile)) {
16
+ console.error(`❌ ${envFile} not found`);
17
+ process.exit(1);
18
+ }
19
+ dotenv_1.default.config({ path: envFile });
20
+ if (!process.env.DATABASE_URL) {
21
+ console.error(`❌ DATABASE_URL is not set in .env.${envName}`);
22
+ process.exit(1);
23
+ }
24
+ console.log(`🔧 Using environment: ${envName}`);
25
+ console.log(`🔧 Loaded: .env.${envName}`);
26
+ const corePrismaSchema = path_1.default.resolve(__dirname, '../../prisma/schema.prisma');
27
+ const consumerMigrationsDir = path_1.default.resolve(process.cwd(), 'prisma/migrations');
28
+ const consumerSchemaDir = path_1.default.resolve(process.cwd(), 'prisma');
29
+ // 1. ensure consumer prisma folder exists
30
+ fs_1.default.mkdirSync(consumerSchemaDir, { recursive: true });
31
+ fs_1.default.mkdirSync(consumerMigrationsDir, { recursive: true });
32
+ // 2. copy core schema.prisma into consumer prisma folder
33
+ const tempSchema = path_1.default.resolve(consumerSchemaDir, 'schema.prisma');
34
+ fs_1.default.copyFileSync(corePrismaSchema, tempSchema);
35
+ // 3. run prisma migrate dev
36
+ (0, child_process_1.execSync)('npx prisma migrate dev --name init_core', {
37
+ stdio: 'inherit',
38
+ cwd: process.cwd(),
39
+ env: { ...process.env }
40
+ });
41
+ console.log('✅ Core migration generated successfully');
42
+ //# sourceMappingURL=migrate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../src/scripts/migrate.ts"],"names":[],"mappings":";;;;;AAAA,iDAAwC;AACxC,gDAAuB;AACvB,4CAAmB;AACnB,oDAA2B;AAE3B,oDAAoD;AACpD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAClC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAA;AACtD,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAA;AAE/D,MAAM,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAA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AAA;AAE7C,4BAA4B;AAC5B,IAAA,wBAAQ,EAAC,yCAAyC,EAAE;IAChD,KAAK,EAAE,SAAS;IAChB,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;IAClB,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE;CAC1B,CAAC,CAAA;AAEF,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAA","sourcesContent":["import { execSync } from 'child_process'\nimport path from 'path'\nimport fs from 'fs'\nimport dotenv from 'dotenv'\n\n// read --env flag from args, default to development\nconst args = process.argv.slice(2)\nconst envFlag = args.find(a => a.startsWith('--env='))\nconst envName = envFlag ? envFlag.split('=')[1] : 'development'\n\nconst envFile = path.resolve(process.cwd(), `.env.${envName}`)\n\nif (!fs.existsSync(envFile)) {\n console.error(`❌ ${envFile} not found`)\n process.exit(1)\n}\n\ndotenv.config({ path: envFile })\n\nif (!process.env.DATABASE_URL) {\n console.error(`❌ DATABASE_URL is not set in .env.${envName}`)\n process.exit(1)\n}\n\nconsole.log(`🔧 Using environment: ${envName}`)\nconsole.log(`🔧 Loaded: .env.${envName}`)\n\nconst corePrismaSchema = path.resolve(\n __dirname, '../../prisma/schema.prisma'\n)\n\nconst consumerMigrationsDir = path.resolve(\n process.cwd(), 'prisma/migrations'\n)\n\nconst consumerSchemaDir = path.resolve(\n process.cwd(), 'prisma'\n)\n\n// 1. ensure consumer prisma folder exists\nfs.mkdirSync(consumerSchemaDir, { recursive: true })\nfs.mkdirSync(consumerMigrationsDir, { recursive: true })\n\n// 2. copy core schema.prisma into consumer prisma folder\nconst tempSchema = path.resolve(consumerSchemaDir, 'schema.prisma')\nfs.copyFileSync(corePrismaSchema, tempSchema)\n\n// 3. run prisma migrate dev\nexecSync('npx prisma migrate dev --name init_core', {\n stdio: 'inherit',\n cwd: process.cwd(),\n env: { ...process.env }\n})\n\nconsole.log('✅ Core migration generated successfully')"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
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
+ const child_process_1 = require("child_process");
7
+ const path_1 = __importDefault(require("path"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const corePrismaSchema = path_1.default.resolve(__dirname, '../../prisma/schema.prisma');
10
+ const migrationDir = path_1.default.resolve(process.cwd(), 'prisma/migrations');
11
+ // generate datetime string e.g. 20240101_120000
12
+ const now = new Date();
13
+ const datetime = now.getFullYear().toString() +
14
+ String(now.getMonth() + 1).padStart(2, '0') +
15
+ String(now.getDate()).padStart(2, '0') +
16
+ '_' +
17
+ String(now.getHours()).padStart(2, '0') +
18
+ String(now.getMinutes()).padStart(2, '0') +
19
+ String(now.getSeconds()).padStart(2, '0');
20
+ const fileName = `migration_core-${datetime}.sql`;
21
+ const migrationFile = path_1.default.resolve(migrationDir, fileName);
22
+ // 1. create migrations folder
23
+ fs_1.default.mkdirSync(migrationDir, { recursive: true });
24
+ // 2. generate SQL from core schema — no DB needed
25
+ (0, child_process_1.execSync)(`npx prisma migrate diff --from-empty --to-schema-datamodel "${corePrismaSchema}" --script > "${migrationFile}"`, {
26
+ stdio: 'inherit',
27
+ cwd: process.cwd(),
28
+ env: {
29
+ ...process.env,
30
+ DATABASE_URL: 'postgresql://dummy:dummy@localhost:5432/dummy'
31
+ }
32
+ });
33
+ console.log(`✅ Core migration SQL generated at:`);
34
+ console.log(` prisma/migrations/${fileName}`);
35
+ console.log('');
36
+ console.log('👉 Next steps:');
37
+ console.log(' 1. Run the SQL against your database');
38
+ console.log(' 2. Add your own tables');
39
+ console.log(' 3. Run: npx prisma db pull');
40
+ console.log(' 4. Run: npx prisma generate');
41
+ //# sourceMappingURL=migrate_core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate_core.js","sourceRoot":"","sources":["../../src/scripts/migrate_core.ts"],"names":[],"mappings":";;;;;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IAClB,GAAG,EAAE;QACD,GAAG,OAAO,CAAC,GAAG;QACd,YAAY,EAAE,+CAA+C;KAChE;CACJ,CACJ,CAAA;AAED,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAA;AACjD,OAAO,CAAC,GAAG,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAA;AAC/C,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;AACf,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;AAC7B,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAA;AACtD,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;AACxC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA;AAC5C,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA","sourcesContent":["import { execSync } from 'child_process'\nimport path from 'path'\nimport fs from 'fs'\n\nconst corePrismaSchema = path.resolve(\n __dirname, '../../prisma/schema.prisma'\n)\n\nconst migrationDir = path.resolve(\n process.cwd(), 'prisma/migrations'\n)\n\n// generate datetime string e.g. 20240101_120000\nconst now = new Date()\nconst datetime = now.getFullYear().toString() +\n String(now.getMonth() + 1).padStart(2, '0') +\n String(now.getDate()).padStart(2, '0') +\n '_' +\n String(now.getHours()).padStart(2, '0') +\n String(now.getMinutes()).padStart(2, '0') +\n String(now.getSeconds()).padStart(2, '0')\n\nconst fileName = `migration_core-${datetime}.sql`\nconst migrationFile = path.resolve(migrationDir, fileName)\n\n// 1. create migrations folder\nfs.mkdirSync(migrationDir, { recursive: true })\n\n// 2. generate SQL from core schema — no DB needed\nexecSync(\n `npx prisma migrate diff --from-empty --to-schema-datamodel \"${corePrismaSchema}\" --script > \"${migrationFile}\"`,\n {\n stdio: 'inherit',\n cwd: process.cwd(),\n env: {\n ...process.env,\n DATABASE_URL: 'postgresql://dummy:dummy@localhost:5432/dummy'\n }\n }\n)\n\nconsole.log(`✅ Core migration SQL generated at:`)\nconsole.log(` prisma/migrations/${fileName}`)\nconsole.log('')\nconsole.log('👉 Next steps:')\nconsole.log(' 1. Run the SQL against your database')\nconsole.log(' 2. Add your own tables')\nconsole.log(' 3. Run: npx prisma db pull')\nconsole.log(' 4. Run: npx prisma generate')"]}
@@ -58,18 +58,18 @@ let defaultSqlSelect = {
58
58
  // let userStatusIsOwnerSqlSelect = {
59
59
  // [`COALESCE(usrsta_isowner.${ModelUserStatusFields.status}::int, 0)`]: "is_owner"
60
60
  // }
61
- let userPropLocationSqlSelect = {
62
- // [`COALESCE(usrprop_location.${ModelUserPropFields.props_id}::int, 0)`]: "location_id",
63
- [`COALESCE(
64
- STRING_AGG(DISTINCT usrprop_location.${models_1.ModelUserPropFields.props_id}::text, ', '),
65
- ''
66
- )`]: "location_id",
67
- // [`COALESCE(location.${ModelLocationFields.location_name}::text, '')`]: "location_name",
68
- [`COALESCE(
69
- STRING_AGG(DISTINCT location.${models_1.ModelLocationFields.location_name}::text, ', '),
70
- ''
71
- )`]: "location_name",
72
- };
61
+ // let userPropLocationSqlSelect = {
62
+ // [`COALESCE(usrprop_location.${ModelUserPropFields.props_id}::int, 0)`]: "location_id",
63
+ // [`COALESCE(
64
+ // STRING_AGG(DISTINCT usrprop_location.${ModelUserPropFields.props_id}::text, ', '),
65
+ // ''
66
+ // )`]: "location_id",
67
+ // [`COALESCE(location.${ModelLocationFields.location_name}::text, '')`]: "location_name",
68
+ // [`COALESCE(
69
+ // STRING_AGG(DISTINCT location.${ModelLocationFields.location_name}::text, ', '),
70
+ // ''
71
+ // )`]: "location_name",
72
+ // }
73
73
  let groupOwnerSqlSelect = {
74
74
  [`COALESCE(
75
75
  STRING_AGG(DISTINCT grp.${models_1.ModelGroupFields.group_id}::text, ', '),
@@ -164,7 +164,7 @@ const AdministratorService = (props) => {
164
164
  (0, lib_1.buildSqlSelect)(``, userSqlSelect),
165
165
  (0, lib_1.buildSqlSelect)(``, defaultSqlSelect),
166
166
  // buildSqlSelect(``, userStatusIsOwnerSqlSelect),
167
- (0, lib_1.buildSqlSelect)(``, userPropLocationSqlSelect),
167
+ // buildSqlSelect(``, userPropLocationSqlSelect),
168
168
  (0, lib_1.buildSqlSelect)(``, groupOwnerSqlSelect)
169
169
  ];
170
170
  let sqlRelation = [
@@ -172,8 +172,8 @@ const AdministratorService = (props) => {
172
172
  (0, lib_1.buildSqlRelation)("left", "adm", "users", "creator", ["adm.createuserid = creator.user_id", "creator.isdelete = false", "creator.istrash = false"]),
173
173
  (0, lib_1.buildSqlRelation)("left", "adm", "users", "updater", ["adm.updateuserid = updater.user_id", "updater.isdelete = false", "updater.istrash = false"]),
174
174
  // buildSqlRelation("left", "adm", "user_status", "usrsta_isowner", ["adm.user_id = usrsta_isowner.user_id", "usrsta_isowner.type = 'IS_OWNER'", "usrsta_isowner.isdelete = false", "usrsta_isowner.istrash = false"]),
175
- (0, lib_1.buildSqlRelation)("left", "adm", "user_props", "usrprop_location", ["adm.user_id = usrprop_location.user_id", "usrprop_location.type = 'LOCATION_ID'", "usrprop_location.isdelete = false", "usrprop_location.istrash = false"]),
176
- (0, lib_1.buildSqlRelation)("left", "adm", "locations", "location", ["usrprop_location.props_id = location.location_id", "location.isdelete = false", "location.istrash = false"]),
175
+ // buildSqlRelation("left", "adm", "user_props", "usrprop_location", ["adm.user_id = usrprop_location.user_id", "usrprop_location.type = 'LOCATION_ID'", "usrprop_location.isdelete = false", "usrprop_location.istrash = false"]),
176
+ // buildSqlRelation("left", "adm", "locations", "location", ["usrprop_location.props_id = location.location_id", "location.isdelete = false", "location.istrash = false"]),
177
177
  (0, lib_1.buildSqlRelation)("left", "adm", "group_owners", "grpown", ["adm.user_id = grpown.user_id", "grpown.isdelete = false", "grpown.istrash = false"]),
178
178
  (0, lib_1.buildSqlRelation)("left", "adm", "groups", "grp", ["grpown.group_id = grp.group_id", "grp.isdelete = false", "grp.istrash = false"])
179
179
  ];
@@ -188,7 +188,7 @@ const AdministratorService = (props) => {
188
188
  ...mainSqlSelect,
189
189
  ...userSqlSelect,
190
190
  // ...userStatusIsOwnerSqlSelect,
191
- ...userPropLocationSqlSelect,
191
+ // ...userPropLocationSqlSelect,
192
192
  ...defaultSqlSelect
193
193
  };
194
194
  if (datatypes.includes(exports.administratorDataTypes.administratorInjectionFields)) {