storemw-core-client 1.0.6 → 1.0.8

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.
@@ -28,7 +28,6 @@ export type CreateAccountProps = {
28
28
  lastname: string;
29
29
  contact: string;
30
30
  email: string;
31
- status: number;
32
31
  address: string;
33
32
  };
34
33
  business: {
@@ -19,8 +19,8 @@ const getCreatePayload = (data) => {
19
19
  lastname: data.administrator.lastname,
20
20
  contact: data.administrator.contact,
21
21
  email: data.administrator.email,
22
- status: data.administrator.status,
23
22
  address: data.administrator.address,
23
+ // status: data.administrator.status,
24
24
  },
25
25
  business: {
26
26
  company_name: data.business.company_name,
@@ -1 +1 @@
1
- {"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../../src/services/account/AccountService.ts"],"names":[],"mappings":";;;AAAA,+BAAmD;AAEnD,+BAMe;AAEF,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE,SAAS;CACZ,CAAA;AAuFV,MAAM,gBAAgB,GAAG,CAAC,IAAgC,EAAE,EAAE;IAE1D,OAAO;QACH,OAAO,EAAE;YACL,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;SAC9B;QACD,aAAa,EAAE;YACX,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;YACrC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;YACrC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;YACvC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;YACrC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;YACnC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;YAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;YACjC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;SACtC;QACD,QAAQ,EAAE;YACN,YAAY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AED,kGAAkG;IAElG,oFAAoF;IAEpF,4CAA4C;IAC5C,mBAAmB;IACnB,6BAA6B;IAC7B,cAAc;IAEd,2BAA2B;IAE3B,IAAI;IAEJ,OAAO;QACH,IAAI;QACJ,GAAG;QACH,MAAM;QACN,MAAM;QACN,MAAM;QACN,eAAe;KAClB,CAAC;AACN,CAAC,CAAA;AA/JY,QAAA,cAAc,kBA+J1B","sourcesContent":["import { ApiService, ApiServiceType } from '@/lib';\n\nimport {\n buildApiListUrl,\n BuildApiListParamsProps,\n buildApiGetUrl,\n BuildApiGetParamsProps,\n filterOperatorTypes\n} from '@/lib';\n\nexport const accountTypes = {\n account: \"account\",\n} as const\n\n// export const accountTargetTypes = {\n// account: \"account\",\n// } as const\n\nexport type AccountType = typeof accountTypes[keyof typeof accountTypes]\n// export type AccountTargetType = typeof accountTargetTypes[keyof typeof accountTargetTypes]\n// export type AccountTargetKey = keyof typeof accountTargetTypes\n\nexport type AccountServiceProps = ApiServiceType & {\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n};\n\nexport type ListAccountProps = BuildApiListParamsProps & {\n accountType?: AccountType\n}\n\nexport type GetAccountProps = BuildApiGetParamsProps & {\n id: number | string\n accountType?: AccountType\n}\n\nexport type CreateAccountProps = {\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n data:\n // for Account\n {\n account: {\n name: string;\n status: boolean;\n };\n administrator: {\n username: string;\n password: string;\n firstname: string;\n lastname: string;\n contact: string;\n email: string;\n status: number;\n address: string;\n };\n business: {\n company_name: string;\n registration_number: string;\n website: string;\n email: string;\n company_contact: string;\n address_1: string;\n address_2: string;\n country_id: number;\n state_id: number;\n area_id: number;\n postcode: string;\n // status: boolean;\n };\n }\n}\n\nexport type UpdateAccountProps = {\n id: number\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n data:\n // for Business\n {\n account: {\n name: string\n businessId: number\n // ownerUserId: number\n status: boolean\n }\n }\n}\n\nexport type RemoveAccountProps = {\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n ids: number[]\n}\n\nexport type GetDataTypeAccountProps = {\n accountType?: AccountType\n}\n\nconst getCreatePayload = (data: CreateAccountProps[\"data\"]) => {\n\n return {\n account: {\n name: data.account.name,\n status: data.account.status,\n },\n administrator: {\n username: data.administrator.username,\n password: data.administrator.password,\n firstname: data.administrator.firstname,\n lastname: data.administrator.lastname,\n contact: data.administrator.contact,\n email: data.administrator.email,\n status: data.administrator.status,\n address: data.administrator.address,\n },\n business: {\n company_name: data.business.company_name,\n registration_number: data.business.registration_number,\n website: data.business.website,\n email: data.business.email,\n company_contact: data.business.company_contact,\n address_1: data.business.address_1,\n address_2: data.business.address_2,\n country_id: data.business.country_id,\n state_id: data.business.state_id,\n area_id: data.business.area_id,\n postcode: data.business.postcode,\n // status: data.business.status,\n },\n }\n\n}\n\nconst getUpdatePayload = (data: UpdateAccountProps[\"data\"]) => {\n\n return {\n account: {\n name: data.account.name,\n business_id: data.account.businessId,\n // owner_user_id: data.account.ownerUserId,\n status: data.account.status,\n }\n }\n\n}\n\nexport const AccountService = (props?: AccountServiceProps) => {\n\n const { accountType = \"account\", ...rest } = props ?? {};\n\n const { makeCall } = ApiService(rest?.customToken ? { customToken: rest.customToken } : {})\n\n const endpoint1 = \"account\";\n const endpoint2 = \"accounts\";\n\n const list = async (props: ListAccountProps) => {\n\n // const { accountType: overrideAccountType } = props;\n\n const url = buildApiListUrl(\n `${endpoint2}`,\n props\n );\n\n const response = await makeCall({\n url,\n method: \"get\",\n payload: {},\n // configuration\n });\n\n return response;\n\n }\n\n const get = async (props: GetAccountProps) => {\n\n const { id, accountType: overrideAccountType } = props;\n\n\n const url = buildApiGetUrl(\n `${endpoint1}/${overrideAccountType || accountType}/${id}`,\n props\n );\n\n const response = await makeCall({\n url,\n method: \"get\",\n payload: {},\n // configuration\n });\n\n return response;\n\n\n }\n\n const create = async ({ data, accountType: overrideAccountType }: CreateAccountProps) => {\n\n let _accountType = overrideAccountType || accountType\n\n let payload: any = {}\n\n payload = getCreatePayload(data)\n\n let url = `${endpoint1}`;\n\n let postData = {\n scope: {\n target: _accountType,\n action: \"\",\n },\n payload\n }\n\n const response = await makeCall({\n url,\n method: \"post\",\n payload: postData\n });\n\n return response;\n\n }\n\n const update = async ({ id, data, accountType: overrideAccountType }: UpdateAccountProps) => {\n\n\n let url = `${endpoint1}/${id}`\n\n // let payload: any = {}\n\n // if (overrideAccountType) {\n // payload = getUpdatePayload(overrideAccountType, data)\n // }\n\n let _accountType = overrideAccountType || accountType\n\n let payload: any = getUpdatePayload(data)\n\n const postData = {\n scope: {\n target: _accountType,\n action: \"\",\n },\n payload\n }\n\n const response = await makeCall({\n url,\n method: \"put\",\n payload: postData\n });\n\n return response;\n\n\n }\n\n const remove = async ({ ids, accountType: overrideAccountType }: RemoveAccountProps) => {\n\n let _accountType = overrideAccountType || accountType\n\n let url = `${endpoint2}/delete`\n\n const postData = {\n scope: {\n target: _accountType\n },\n payload: {\n ids\n }\n }\n\n const response = await makeCall({\n url,\n method: \"post\",\n payload: postData\n });\n\n return response;\n\n }\n\n // const getDataTypes = async ({ accountType: overrideAccountType }: GetDataTypeAccountProps) => {\n\n // let url = `${endpoint1}/data_types/${overrideAccountType || accountType}`\n\n // const response = await makeCall({\n // url,\n // method: \"get\",\n // });\n\n // return response;\n\n // }\n\n return {\n list,\n get,\n create,\n update,\n remove,\n // getDataTypes\n };\n}\n"]}
1
+ {"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../../src/services/account/AccountService.ts"],"names":[],"mappings":";;;AAAA,+BAAmD;AAEnD,+BAMe;AAEF,QAAA,YAAY,GAAG;IACxB,OAAO,EAAE,SAAS;CACZ,CAAA;AAuFV,MAAM,gBAAgB,GAAG,CAAC,IAAgC,EAAE,EAAE;IAE1D,OAAO;QACH,OAAO,EAAE;YACL,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;SAC9B;QACD,aAAa,EA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AE,EAAE;QAEnF,IAAI,YAAY,GAAG,mBAAmB,IAAI,WAAW,CAAA;QAErD,IAAI,GAAG,GAAG,GAAG,SAAS,SAAS,CAAA;QAE/B,MAAM,QAAQ,GAAG;YACb,KAAK,EAAE;gBACH,MAAM,EAAE,YAAY;aACvB;YACD,OAAO,EAAE;gBACL,GAAG;aACN;SACJ,CAAA;QAED,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC;YAC5B,GAAG;YACH,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,QAAQ;SACpB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAEpB,CAAC,CAAA;IAED,kGAAkG;IAElG,oFAAoF;IAEpF,4CAA4C;IAC5C,mBAAmB;IACnB,6BAA6B;IAC7B,cAAc;IAEd,2BAA2B;IAE3B,IAAI;IAEJ,OAAO;QACH,IAAI;QACJ,GAAG;QACH,MAAM;QACN,MAAM;QACN,MAAM;QACN,eAAe;KAClB,CAAC;AACN,CAAC,CAAA;AA/JY,QAAA,cAAc,kBA+J1B","sourcesContent":["import { ApiService, ApiServiceType } from '@/lib';\n\nimport {\n buildApiListUrl,\n BuildApiListParamsProps,\n buildApiGetUrl,\n BuildApiGetParamsProps,\n filterOperatorTypes\n} from '@/lib';\n\nexport const accountTypes = {\n account: \"account\",\n} as const\n\n// export const accountTargetTypes = {\n// account: \"account\",\n// } as const\n\nexport type AccountType = typeof accountTypes[keyof typeof accountTypes]\n// export type AccountTargetType = typeof accountTargetTypes[keyof typeof accountTargetTypes]\n// export type AccountTargetKey = keyof typeof accountTargetTypes\n\nexport type AccountServiceProps = ApiServiceType & {\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n};\n\nexport type ListAccountProps = BuildApiListParamsProps & {\n accountType?: AccountType\n}\n\nexport type GetAccountProps = BuildApiGetParamsProps & {\n id: number | string\n accountType?: AccountType\n}\n\nexport type CreateAccountProps = {\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n data:\n // for Account\n {\n account: {\n name: string;\n status: boolean;\n };\n administrator: {\n username: string;\n password: string;\n firstname: string;\n lastname: string;\n contact: string;\n email: string;\n address: string;\n // status: number;\n };\n business: {\n company_name: string;\n registration_number: string;\n website: string;\n email: string;\n company_contact: string;\n address_1: string;\n address_2: string;\n country_id: number;\n state_id: number;\n area_id: number;\n postcode: string;\n // status: boolean;\n };\n }\n}\n\nexport type UpdateAccountProps = {\n id: number\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n data:\n // for Business\n {\n account: {\n name: string\n businessId: number\n // ownerUserId: number\n status: boolean\n }\n }\n}\n\nexport type RemoveAccountProps = {\n // accountTargetType?: AccountTargetType\n accountType?: AccountType\n ids: number[]\n}\n\nexport type GetDataTypeAccountProps = {\n accountType?: AccountType\n}\n\nconst getCreatePayload = (data: CreateAccountProps[\"data\"]) => {\n\n return {\n account: {\n name: data.account.name,\n status: data.account.status,\n },\n administrator: {\n username: data.administrator.username,\n password: data.administrator.password,\n firstname: data.administrator.firstname,\n lastname: data.administrator.lastname,\n contact: data.administrator.contact,\n email: data.administrator.email,\n address: data.administrator.address,\n // status: data.administrator.status,\n },\n business: {\n company_name: data.business.company_name,\n registration_number: data.business.registration_number,\n website: data.business.website,\n email: data.business.email,\n company_contact: data.business.company_contact,\n address_1: data.business.address_1,\n address_2: data.business.address_2,\n country_id: data.business.country_id,\n state_id: data.business.state_id,\n area_id: data.business.area_id,\n postcode: data.business.postcode,\n // status: data.business.status,\n },\n }\n\n}\n\nconst getUpdatePayload = (data: UpdateAccountProps[\"data\"]) => {\n\n return {\n account: {\n name: data.account.name,\n business_id: data.account.businessId,\n // owner_user_id: data.account.ownerUserId,\n status: data.account.status,\n }\n }\n\n}\n\nexport const AccountService = (props?: AccountServiceProps) => {\n\n const { accountType = \"account\", ...rest } = props ?? {};\n\n const { makeCall } = ApiService(rest?.customToken ? { customToken: rest.customToken } : {})\n\n const endpoint1 = \"account\";\n const endpoint2 = \"accounts\";\n\n const list = async (props: ListAccountProps) => {\n\n // const { accountType: overrideAccountType } = props;\n\n const url = buildApiListUrl(\n `${endpoint2}`,\n props\n );\n\n const response = await makeCall({\n url,\n method: \"get\",\n payload: {},\n // configuration\n });\n\n return response;\n\n }\n\n const get = async (props: GetAccountProps) => {\n\n const { id, accountType: overrideAccountType } = props;\n\n\n const url = buildApiGetUrl(\n `${endpoint1}/${overrideAccountType || accountType}/${id}`,\n props\n );\n\n const response = await makeCall({\n url,\n method: \"get\",\n payload: {},\n // configuration\n });\n\n return response;\n\n\n }\n\n const create = async ({ data, accountType: overrideAccountType }: CreateAccountProps) => {\n\n let _accountType = overrideAccountType || accountType\n\n let payload: any = {}\n\n payload = getCreatePayload(data)\n\n let url = `${endpoint1}`;\n\n let postData = {\n scope: {\n target: _accountType,\n action: \"\",\n },\n payload\n }\n\n const response = await makeCall({\n url,\n method: \"post\",\n payload: postData\n });\n\n return response;\n\n }\n\n const update = async ({ id, data, accountType: overrideAccountType }: UpdateAccountProps) => {\n\n\n let url = `${endpoint1}/${id}`\n\n // let payload: any = {}\n\n // if (overrideAccountType) {\n // payload = getUpdatePayload(overrideAccountType, data)\n // }\n\n let _accountType = overrideAccountType || accountType\n\n let payload: any = getUpdatePayload(data)\n\n const postData = {\n scope: {\n target: _accountType,\n action: \"\",\n },\n payload\n }\n\n const response = await makeCall({\n url,\n method: \"put\",\n payload: postData\n });\n\n return response;\n\n\n }\n\n const remove = async ({ ids, accountType: overrideAccountType }: RemoveAccountProps) => {\n\n let _accountType = overrideAccountType || accountType\n\n let url = `${endpoint2}/delete`\n\n const postData = {\n scope: {\n target: _accountType\n },\n payload: {\n ids\n }\n }\n\n const response = await makeCall({\n url,\n method: \"post\",\n payload: postData\n });\n\n return response;\n\n }\n\n // const getDataTypes = async ({ accountType: overrideAccountType }: GetDataTypeAccountProps) => {\n\n // let url = `${endpoint1}/data_types/${overrideAccountType || accountType}`\n\n // const response = await makeCall({\n // url,\n // method: \"get\",\n // });\n\n // return response;\n\n // }\n\n return {\n list,\n get,\n create,\n update,\n remove,\n // getDataTypes\n };\n}\n"]}
@@ -29,7 +29,7 @@ export type { BusinessServiceProps, BusinessType, ListBusinessProps, GetBusiness
29
29
  export { LogisticService, logisticTypes, logisticTargetTypes, transportTypes } from '../services/logistic/LogisticService';
30
30
  export type { LogisticServiceProps, LogisticType, ListLogisticProps, GetLogisticProps, CreateLogisticProps, UpdateLogisticProps, RemoveLogisticProps } from '../services/logistic/LogisticService';
31
31
  export { AccountService, accountTypes } from '../services/account/AccountService';
32
- export type { AccountServiceProps, AccountType, ListAccountProps, GetAccountProps, UpdateAccountProps } from '../services/account/AccountService';
32
+ export type { AccountServiceProps, AccountType, ListAccountProps, GetAccountProps, UpdateAccountProps, CreateAccountProps } from '../services/account/AccountService';
33
33
  export { RepositoryService, repositoryTypes, repositoryTargetTypes } from '../services/repository/RepositoryService';
34
34
  export type { RepositoryServiceProps, RepositoryType, ListRepositoryProps, GetRepositoryProps, CreateRepositoryProps, UpdateRepositoryProps, RemoveRepositoryProps } from '../services/repository/RepositoryService';
35
35
  export { PermissionService, permissionTypes, permissionScopeTypes, permissionModuleTypes, permissionFunctionTypes, permissionFunctionActionTypes } from '../services/permission/PermissionService';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;AAAA,2DAA2E;AAAlE,0GAAA,WAAW,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGrC,2DAAsF;AAA7E,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGhD,mEAA8F;AAArF,kHAAA,eAAe,OAAA;AAAE,4GAAA,SAAS,OAAA;AAAE,kHAAA,eAAe,OAAA;AAGpD,uEAA8G;AAArG,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAGlE,iEAAgG;AAAvF,8GAAA,aAAa,OAAA;AAAE,4GAAA,WAAW,OAAA;AAAE,kHA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AA,eAAe,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAGlE,6EAAkM;AAAzL,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAAE,4HAAA,uBAAuB,OAAA;AAAE,kIAAA,6BAA6B,OAAA;AAGhJ,qDAAqD;AACrD,sDAAsD;AACtD,0FAA0F;AAC1F,gEAAgE;AAEhE,2EAA2E;AAC3E,mFAAmF;AAEnF,sEAAsE;AACtE,yDAAyD;AAEzD,qDAAqD;AACrD,iDAAiD;AAEjD,iEAAiE;AACjE,kGAAkG;AAElG,iGAAiG;AACjG,0NAA0N","sourcesContent":["export { AuthService, authTargetTypes } from '@/services/auth/AuthService';\nexport type { AuthLoginProps, AuthTargetType } from '@/services/auth/AuthService'\n\nexport { UserService, userTypes, userTargetTypes } from '@/services/user/UserService';\nexport type { UserServiceProps, UserType, ListUserProps, GetUserProps, CreateUserProps, UpdateUserProps, RemoveUserProps } from '@/services/user/UserService';\n\nexport { UserRoleService, roleTypes, roleTargetTypes } from '@/services/user/UserRoleService';\nexport type { UserRoleServiceProps, RoleType, ListRoleProps, GetRoleProps, CreateRoleProps, UpdateRoleProps, RemoveRoleProps, UpdateRolePermissionProps } from '@/services/user/UserRoleService';\n\nexport { BranchUserService, branchUserTypes, branchUserTargetTypes } from '@/services/user/BranchUserService';\nexport type { BranchUserServiceProps, BranchUserType, ListBranchUserProps, GetBranchUserProps, CreateBranchUserProps, UpdateBranchUserProps, RemoveBranchUserProps } from '@/services/user/BranchUserService';\n\nexport { BranchService, branchTypes, branchTargetTypes } from '@/services/branch/BranchService';\nexport type { BranchServiceProps, BranchType, ListBranchProps, GetBranchProps, CreateBranchProps, UpdateBranchProps, RemoveBranchProps } from '@/services/branch/BranchService';\n\nexport { DocumentService, documentTypes } from '@/services/document/DocumentService';\nexport type { DocumentServiceProps, DocumentType, ListDocumentProps, GetDocumentProps, CreateDocumentProps, UpdateDocumentProps, RemoveDocumentProps } from '@/services/document/DocumentService';\n\nexport { ItemService, itemTypes, itemTargetTypes } from '@/services/item/ItemService';\nexport type { ItemServiceProps, ItemType, ListItemProps, GetItemProps, CreateItemProps, UpdateItemProps, RemoveItemProps, CreateMultipleItemProps, CreateMultipleItemPropsProps } from '@/services/item/ItemService';\n\nexport { InjectionFieldService, injectionFieldMap, injectionFieldScopeTypes, injectionFieldDataTypes, getInjectionFieldsPayload } from '@/services/injection_field/InjectionFieldService';\nexport type { InjectionFieldServiceProps, InjectionField, InjectionFieldScopeType, StrictInjectionField, ListInjectionFieldProps, GetInjectionFieldProps, CreateInjectionFieldProps, RemoveInjectionFieldProps, UpdateInjectionFieldValuesProps } from '@/services/injection_field/InjectionFieldService';\n\nexport { LocationService, locationTypes, locationTargetTypes } from '@/services/location/LocationService';\nexport type { LocationServiceProps, LocationType, ListLocationProps, GetLocationProps, CreateLocationProps, UpdateLocationProps, RemoveLocationProps } from '@/services/location/LocationService';\n\nexport { RegionService, regionTypes, regionTargetTypes } from '@/services/region/RegionService';\nexport type { RegionServiceProps, RegionType, ListRegionProps, GetRegionProps, CreateRegionProps, UpdateRegionProps, RemoveRegionProps } from '@/services/region/RegionService';\n\nexport { RateService, rateTypes, rateTargetTypes, rateCalculationTypes } from '@/services/rate/RateService';\nexport type { RateServiceProps, RateType, ListRateProps, GetRateProps, CreateRateProps, UpdateRateProps, RemoveRateProps, RemoveRateItemProps, CalculateRateProps } from '@/services/rate/RateService';\n\nexport { WalletService, walletTypes, walletTargetTypes, walletCurrencyTypes } from '@/services/wallet/WalletService';\nexport type { WalletServiceProps, WalletType, ListWalletProps, GetWalletProps, CreateWalletProps, UpdateWalletProps, RemoveWalletProps } from '@/services/wallet/WalletService';\n\nexport { TransactionService, transactionTypes, transactionTargetTypes, transactionActionTypes } from '@/services/transaction/TransactionService';\nexport type { TransactionServiceProps, TransactionType, ListTransactionProps, GetTransactionProps, CreateTransactionProps, UpdateStatusTransactionProps } from '@/services/transaction/TransactionService';\n\nexport { BusinessService, businessTypes, businessTargetTypes } from '@/services/business/BusinessService';\nexport type { BusinessServiceProps, BusinessType, ListBusinessProps, GetBusinessProps, CreateBusinessProps, UpdateBusinessProps, RemoveBusinessProps } from '@/services/business/BusinessService';\n\nexport { LogisticService, logisticTypes, logisticTargetTypes, transportTypes } from '@/services/logistic/LogisticService';\nexport type { LogisticServiceProps, LogisticType, ListLogisticProps, GetLogisticProps, CreateLogisticProps, UpdateLogisticProps, RemoveLogisticProps } from '@/services/logistic/LogisticService';\n\nexport { AccountService, accountTypes } from '@/services/account/AccountService';\nexport type { AccountServiceProps, AccountType, ListAccountProps, GetAccountProps, UpdateAccountProps } from '@/services/account/AccountService';\n\nexport { RepositoryService, repositoryTypes, repositoryTargetTypes } from '@/services/repository/RepositoryService'\nexport type { RepositoryServiceProps, RepositoryType, ListRepositoryProps, GetRepositoryProps, CreateRepositoryProps, UpdateRepositoryProps, RemoveRepositoryProps } from '@/services/repository/RepositoryService'\n\nexport { PermissionService, permissionTypes, permissionScopeTypes, permissionModuleTypes, permissionFunctionTypes, permissionFunctionActionTypes } from '@/services/permission/PermissionService';\nexport type { PermissionServiceProps, CheckPermissionAllowProps, PermissionScopeType, PermissionFunctionType, PermissionFunctionActionType } from '@/services/permission/PermissionService';\n\n// export { SessionService } from './SessionService';\n// export { StorageService } from '../StorageService';\n// export { UserService, userTypes, targetTypes as userTargetTypes } from './UserService';\n// export type { UserType, UserTargetType } from \"./UserService\"\n\n// export { AccountingActivityService } from './AccountingActivityService';\n// export type { AccountingActivityModuleType } from './AccountingActivityService';\n\n// export { DocumentService, documentTypes } from './DocumentService';\n// export type { DocumentType } from './DocumentService';\n\n// export { MarkingService } from './MarkingService';\n// export { AgentService } from './AgentService';\n\n// export { filterOperatorTypes } from \"../utils/buildApiParams\";\n// export type { BuildApiListParamsProps, BuildApiGetParamsProps } from \"../utils/buildApiParams\";\n\n// export { AutocountDocumentService, AutocountDocumentTypes } from './AutocountDocumentService';\n// export type { AutocountDocumentServiceCreateProps, AutocountDocumentServiceCancelProps, AutocountDocumentServiceListProps, AutocountDocumentServiceGetProps, AutocountDocumentType } from './AutocountDocumentService';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;AAAA,2DAA2E;AAAlE,0GAAA,WAAW,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGrC,2DAAsF;AAA7E,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGhD,mEAA8F;AAArF,kHAAA,eAAe,OAAA;AAAE,4GAAA,SAAS,OAAA;AAAE,kHAAA,eAAe,OAAA;AAGpD,uEAA8G;AAArG,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAGlE,iEAAgG;AAAvF,8GAAA,aAAa,OAAA;AAAE,4GAAA,WAAW,OAAA;AAAE,kHAAA,iBAAiB,OAAA;AAGtD,uEAAqF;AAA5E,kHAAA,eAAe,OAAA;AAAE,gHAAA,aAAa,OAAA;AAGvC,2DAAsF;AAA7E,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGhD,0FAA0L;AAAjL,8HAAA,qBAAqB,OAAA;AAAE,0HAAA,iBAAiB,OAAA;AAAE,iIAAA,wBAAwB,OAAA;AAAE,gIAAA,uBAAuB,OAAA;AAAE,kIAAA,yBAAyB,OAAA;AAG/H,uEAA0G;AAAjG,kHAAA,eAAe,OAAA;AAAE,gHAAA,aAAa,OAAA;AAAE,sHAAA,mBAAmB,OAAA;AAG5D,iEAAgG;AAAvF,8GAAA,aAAa,OAAA;AAAE,4GAAA,WAAW,OAAA;AAAE,kHAAA,iBAAiB,OAAA;AAGtD,2DAA4G;AAAnG,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAAE,8GAAA,eAAe,OAAA;AAAE,mHAAA,oBAAoB,OAAA;AAGtE,iEAAqH;AAA5G,8GAAA,aAAa,OAAA;AAAE,4GAAA,WAAW,OAAA;AAAE,kHAAA,iBAAiB,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAG3E,gFAAiJ;AAAxI,wHAAA,kBAAkB,OAAA;AAAE,sHAAA,gBAAgB,OAAA;AAAE,4HAAA,sBAAsB,OAAA;AAAE,4HAAA,sBAAsB,OAAA;AAG7F,uEAA0G;AAAjG,kHAAA,eAAe,OAAA;AAAE,gHAAA,aAAa,OAAA;AAAE,sHAAA,mBAAmB,OAAA;AAG5D,uEAA0H;AAAjH,kHAAA,eAAe,OAAA;AAAE,gHAAA,aAAa,OAAA;AAAE,sHAAA,mBAAmB,OAAA;AAAE,iHAAA,cAAc,OAAA;AAG5E,oEAAiF;AAAxE,gHAAA,cAAc,OAAA;AAAE,8GAAA,YAAY,OAAA;AAGrC,6EAAmH;AAA1G,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAGlE,6EAAkM;AAAzL,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAAE,yHAAA,oBAAoB,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAAE,4HAAA,uBAAuB,OAAA;AAAE,kIAAA,6BAA6B,OAAA;AAGhJ,qDAAqD;AACrD,sDAAsD;AACtD,0FAA0F;AAC1F,gEAAgE;AAEhE,2EAA2E;AAC3E,mFAAmF;AAEnF,sEAAsE;AACtE,yDAAyD;AAEzD,qDAAqD;AACrD,iDAAiD;AAEjD,iEAAiE;AACjE,kGAAkG;AAElG,iGAAiG;AACjG,0NAA0N","sourcesContent":["export { AuthService, authTargetTypes } from '@/services/auth/AuthService';\nexport type { AuthLoginProps, AuthTargetType } from '@/services/auth/AuthService'\n\nexport { UserService, userTypes, userTargetTypes } from '@/services/user/UserService';\nexport type { UserServiceProps, UserType, ListUserProps, GetUserProps, CreateUserProps, UpdateUserProps, RemoveUserProps } from '@/services/user/UserService';\n\nexport { UserRoleService, roleTypes, roleTargetTypes } from '@/services/user/UserRoleService';\nexport type { UserRoleServiceProps, RoleType, ListRoleProps, GetRoleProps, CreateRoleProps, UpdateRoleProps, RemoveRoleProps, UpdateRolePermissionProps } from '@/services/user/UserRoleService';\n\nexport { BranchUserService, branchUserTypes, branchUserTargetTypes } from '@/services/user/BranchUserService';\nexport type { BranchUserServiceProps, BranchUserType, ListBranchUserProps, GetBranchUserProps, CreateBranchUserProps, UpdateBranchUserProps, RemoveBranchUserProps } from '@/services/user/BranchUserService';\n\nexport { BranchService, branchTypes, branchTargetTypes } from '@/services/branch/BranchService';\nexport type { BranchServiceProps, BranchType, ListBranchProps, GetBranchProps, CreateBranchProps, UpdateBranchProps, RemoveBranchProps } from '@/services/branch/BranchService';\n\nexport { DocumentService, documentTypes } from '@/services/document/DocumentService';\nexport type { DocumentServiceProps, DocumentType, ListDocumentProps, GetDocumentProps, CreateDocumentProps, UpdateDocumentProps, RemoveDocumentProps } from '@/services/document/DocumentService';\n\nexport { ItemService, itemTypes, itemTargetTypes } from '@/services/item/ItemService';\nexport type { ItemServiceProps, ItemType, ListItemProps, GetItemProps, CreateItemProps, UpdateItemProps, RemoveItemProps, CreateMultipleItemProps, CreateMultipleItemPropsProps } from '@/services/item/ItemService';\n\nexport { InjectionFieldService, injectionFieldMap, injectionFieldScopeTypes, injectionFieldDataTypes, getInjectionFieldsPayload } from '@/services/injection_field/InjectionFieldService';\nexport type { InjectionFieldServiceProps, InjectionField, InjectionFieldScopeType, StrictInjectionField, ListInjectionFieldProps, GetInjectionFieldProps, CreateInjectionFieldProps, RemoveInjectionFieldProps, UpdateInjectionFieldValuesProps } from '@/services/injection_field/InjectionFieldService';\n\nexport { LocationService, locationTypes, locationTargetTypes } from '@/services/location/LocationService';\nexport type { LocationServiceProps, LocationType, ListLocationProps, GetLocationProps, CreateLocationProps, UpdateLocationProps, RemoveLocationProps } from '@/services/location/LocationService';\n\nexport { RegionService, regionTypes, regionTargetTypes } from '@/services/region/RegionService';\nexport type { RegionServiceProps, RegionType, ListRegionProps, GetRegionProps, CreateRegionProps, UpdateRegionProps, RemoveRegionProps } from '@/services/region/RegionService';\n\nexport { RateService, rateTypes, rateTargetTypes, rateCalculationTypes } from '@/services/rate/RateService';\nexport type { RateServiceProps, RateType, ListRateProps, GetRateProps, CreateRateProps, UpdateRateProps, RemoveRateProps, RemoveRateItemProps, CalculateRateProps } from '@/services/rate/RateService';\n\nexport { WalletService, walletTypes, walletTargetTypes, walletCurrencyTypes } from '@/services/wallet/WalletService';\nexport type { WalletServiceProps, WalletType, ListWalletProps, GetWalletProps, CreateWalletProps, UpdateWalletProps, RemoveWalletProps } from '@/services/wallet/WalletService';\n\nexport { TransactionService, transactionTypes, transactionTargetTypes, transactionActionTypes } from '@/services/transaction/TransactionService';\nexport type { TransactionServiceProps, TransactionType, ListTransactionProps, GetTransactionProps, CreateTransactionProps, UpdateStatusTransactionProps } from '@/services/transaction/TransactionService';\n\nexport { BusinessService, businessTypes, businessTargetTypes } from '@/services/business/BusinessService';\nexport type { BusinessServiceProps, BusinessType, ListBusinessProps, GetBusinessProps, CreateBusinessProps, UpdateBusinessProps, RemoveBusinessProps } from '@/services/business/BusinessService';\n\nexport { LogisticService, logisticTypes, logisticTargetTypes, transportTypes } from '@/services/logistic/LogisticService';\nexport type { LogisticServiceProps, LogisticType, ListLogisticProps, GetLogisticProps, CreateLogisticProps, UpdateLogisticProps, RemoveLogisticProps } from '@/services/logistic/LogisticService';\n\nexport { AccountService, accountTypes } from '@/services/account/AccountService';\nexport type { AccountServiceProps, AccountType, ListAccountProps, GetAccountProps, UpdateAccountProps, CreateAccountProps } from '@/services/account/AccountService';\n\nexport { RepositoryService, repositoryTypes, repositoryTargetTypes } from '@/services/repository/RepositoryService'\nexport type { RepositoryServiceProps, RepositoryType, ListRepositoryProps, GetRepositoryProps, CreateRepositoryProps, UpdateRepositoryProps, RemoveRepositoryProps } from '@/services/repository/RepositoryService'\n\nexport { PermissionService, permissionTypes, permissionScopeTypes, permissionModuleTypes, permissionFunctionTypes, permissionFunctionActionTypes } from '@/services/permission/PermissionService';\nexport type { PermissionServiceProps, CheckPermissionAllowProps, PermissionScopeType, PermissionFunctionType, PermissionFunctionActionType } from '@/services/permission/PermissionService';\n\n// export { SessionService } from './SessionService';\n// export { StorageService } from '../StorageService';\n// export { UserService, userTypes, targetTypes as userTargetTypes } from './UserService';\n// export type { UserType, UserTargetType } from \"./UserService\"\n\n// export { AccountingActivityService } from './AccountingActivityService';\n// export type { AccountingActivityModuleType } from './AccountingActivityService';\n\n// export { DocumentService, documentTypes } from './DocumentService';\n// export type { DocumentType } from './DocumentService';\n\n// export { MarkingService } from './MarkingService';\n// export { AgentService } from './AgentService';\n\n// export { filterOperatorTypes } from \"../utils/buildApiParams\";\n// export type { BuildApiListParamsProps, BuildApiGetParamsProps } from \"../utils/buildApiParams\";\n\n// export { AutocountDocumentService, AutocountDocumentTypes } from './AutocountDocumentService';\n// export type { AutocountDocumentServiceCreateProps, AutocountDocumentServiceCancelProps, AutocountDocumentServiceListProps, AutocountDocumentServiceGetProps, AutocountDocumentType } from './AutocountDocumentService';"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storemw-core-client",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {