@zeniai/client-epic-state 4.19.77-betaAS3 → 4.19.77-betaML99

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.
Files changed (27) hide show
  1. package/lib/entity/company/companyPayload.d.ts +0 -1
  2. package/lib/entity/company/companyPayload.js +0 -1
  3. package/lib/entity/company/companyStateTypes.d.ts +0 -1
  4. package/lib/esm/entity/company/companyPayload.js +0 -1
  5. package/lib/esm/index.js +0 -2
  6. package/lib/esm/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -3
  7. package/lib/esm/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -1
  8. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -4
  9. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +1 -2
  10. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  11. package/lib/esm/view/spendManagement/commonSetup/types/businessVerification.js +1 -148
  12. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  13. package/lib/index.d.ts +0 -3
  14. package/lib/index.js +20 -28
  15. package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
  16. package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -3
  17. package/lib/view/companyView/types/companyPassport/companyDetailsLocalData.d.ts +0 -1
  18. package/lib/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -1
  19. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -4
  20. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +1 -2
  21. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -1
  22. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  23. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  24. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +3 -33
  25. package/lib/view/spendManagement/commonSetup/types/businessVerification.js +0 -150
  26. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  27. package/package.json +1 -1
@@ -15,9 +15,6 @@ const updateCompanyDetailsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0
15
15
  ...(0, companyPassportViewPayload_1.toCompanyIncInfoUpdatableInfoPayload)(companyDetails.incInfo),
16
16
  ...(0, companyPassportViewPayload_1.toCompanyTaxInfoUpdatableInfoPayload)(companyDetails.taxDetails),
17
17
  ...(0, companyPassportViewPayload_1.toCompanyFileInfoPayload)(companyDetails.incInfo, companyDetails.taxDetails),
18
- ...(companyDetails.companyInfo.companyIndustryType != null && {
19
- company_industry_type: companyDetails.companyInfo.companyIndustryType,
20
- }),
21
18
  ...(companyDetails.companyInfo.companySubIndustry != null && {
22
19
  company_industry_sub_type: companyDetails.companyInfo.companySubIndustry,
23
20
  }),
@@ -8,7 +8,6 @@ export interface CompanyInfoLocalData {
8
8
  firstMonthOfFY: Month;
9
9
  legalName: string;
10
10
  phone: string;
11
- companyIndustryType?: string;
12
11
  companySourceOfFunds?: string;
13
12
  companySourceOfFundsDescription?: string;
14
13
  companySubIndustry?: string;
@@ -13,7 +13,6 @@ function toCompanyPassportLocalData(companyView, companyFiles) {
13
13
  website: companyInfo.companyUrl,
14
14
  meetingLink: companyInfo.meetingUrl,
15
15
  industry: companyQuestionaire.companyIndustry,
16
- companyIndustryType: incInfo.companyIndustryType,
17
16
  companySubIndustry: incInfo.companySubIndustry,
18
17
  businessModel: companyQuestionaire.companyBusinessModel ?? '',
19
18
  phone: companyInfo.phone ?? '',
@@ -143,7 +143,7 @@ function toUsNexusTypeKey(value) {
143
143
  return US_NEXUS_LABEL_TO_KEY[value] ?? value;
144
144
  }
145
145
  const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData, registeredAddressData, setupViewType) => {
146
- const { companyDescription, companyLegalName, companyIndustry, companyIndustryType, companySubIndustry, countriesOfOperations, companySourceOfFunds, companySourceOfFundsDescription, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, stateOfIncorporation, sourceOfFunds, } = companyLocalData;
146
+ const { companyDescription, companyLegalName, companyIndustry, companySubIndustry, countriesOfOperations, companySourceOfFunds, companySourceOfFundsDescription, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, stateOfIncorporation, sourceOfFunds, } = companyLocalData;
147
147
  const company = {
148
148
  is_ready_for_verification: sendForVerification,
149
149
  file_ids: fileIds,
@@ -201,9 +201,6 @@ const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerif
201
201
  company['company_industry'] = companyIndustry;
202
202
  }
203
203
  Object.assign(company, {
204
- ...(companyIndustryType != null && {
205
- company_industry_type: companyIndustryType,
206
- }),
207
204
  ...(companySubIndustry != null && {
208
205
  company_industry_sub_type: companySubIndustry,
209
206
  }),
@@ -53,14 +53,13 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
53
53
  const { companyInfo, incInfo, taxInfo, questionaire, companyBillPayInfo } = company;
54
54
  const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, sourceOfFunds, companySourceOfFunds: incCompanySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, } = companyInfo;
55
55
  const { usersSelectedForVerification: usersSelected } = companyBillPayInfo;
56
- const { fileIds, companyIncDate: incDate, companyIncType, companyIncState, companySubIndustry, companyIndustryType, } = incInfo;
56
+ const { fileIds, companyIncDate: incDate, companyIncType, companyIncState, companySubIndustry, } = incInfo;
57
57
  const { companyIndustry } = questionaire;
58
58
  const { taxId } = taxInfo;
59
59
  const companyDetails = {
60
60
  companyId,
61
61
  companyDescription,
62
62
  companyIndustry,
63
- companyIndustryType,
64
63
  companyLegalName,
65
64
  companySubIndustry,
66
65
  companySourceOfFunds: incCompanySourceOfFunds,
@@ -69,7 +69,6 @@ export interface CompanyDetails {
69
69
  addressStatus?: NewAddressData;
70
70
  companyDescription?: string;
71
71
  companyIndustry?: string;
72
- companyIndustryType?: string;
73
72
  companyLegalName?: string;
74
73
  companySourceOfFunds?: string;
75
74
  companySourceOfFundsDescription?: string;
@@ -114,7 +114,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
114
114
  if (companyDetails.localData != null) {
115
115
  const deleteFileStatusById = {};
116
116
  const updateFileStatusById = {};
117
- const { syncToken, companyDescription, companyLegalName, website, companyIndustry, companyIndustryType, companySubIndustry, companySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, stateOfIncorporation, usNexus, usNexusTypes, } = companyDetails.localData;
117
+ const { syncToken, companyDescription, companyLegalName, website, companyIndustry, companySubIndustry, companySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, stateOfIncorporation, usNexus, usNexusTypes, } = companyDetails.localData;
118
118
  fileIds.forEach((fileId) => {
119
119
  deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
120
120
  });
@@ -128,7 +128,6 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
128
128
  companyDescription,
129
129
  companyLegalName,
130
130
  companyIndustry,
131
- companyIndustryType,
132
131
  companySubIndustry,
133
132
  companySourceOfFunds,
134
133
  companySourceOfFundsDescription,
@@ -16,7 +16,6 @@ export interface CompanyDetailsLocalData {
16
16
  fileIds: ID[];
17
17
  companyDescription?: string;
18
18
  companyIndustry?: string;
19
- companyIndustryType?: string;
20
19
  companyLegalName?: string;
21
20
  companySourceOfFunds?: string;
22
21
  companySourceOfFundsDescription?: string;
@@ -1,34 +1,5 @@
1
1
  import { ID } from '../../../../commonStateTypes/common';
2
2
  import { AddressUpdatableInfoPayload } from '../../../addressView/addressViewPayload';
3
- export declare const COMPANY_TRANSACTION_VOLUME_CODES: readonly ["less_than_10000", "10000_50000", "50001_250000", "250001_1000000", "1000001_2000000", "over_2000000"];
4
- export type CompanyTransactionVolumeCode = (typeof COMPANY_TRANSACTION_VOLUME_CODES)[number];
5
- export declare const COMPANY_SOURCE_OF_FUNDS_CODES: readonly ["sales_of_goods", "sales_of_services", "customer_payments", "investment_capital", "business_loans", "owner_contributions", "franchise_revenue", "rental_income", "government_contracts_grants", "donations_fundraising", "membership_fees_subscriptions", "licensing_royalties", "commission_income", "import_export_revenue", "cryptocurrency_activity"];
6
- export type CompanySourceOfFundsCode = (typeof COMPANY_SOURCE_OF_FUNDS_CODES)[number];
7
- export declare const COMPANY_PURPOSE_OF_ACCOUNT_CODES: readonly ["retail_sales", "ecommerce_sales", "cash_heavy_operations", "import_export_trade", "professional_services_not_handling_funds", "professional_services_handling_funds", "holding_investment_company", "property_management_real_estate", "charitable_nonprofit", "construction_contracting", "commercial_cash_operations", "freight_forwarding_logistics", "third_party_payment_processing", "technology_startup", "wholesale_distribution", "franchise_operation", "healthcare_provider", "educational_institution"];
8
- export type CompanyPurposeOfAccountCode = (typeof COMPANY_PURPOSE_OF_ACCOUNT_CODES)[number];
9
- /** Keys for company_us_nexus_desc / form usNexusTypes (labels from usNexusOptions in app locale). */
10
- export declare const COMPANY_US_NEXUS_TYPE_CODES: readonly ["employees", "customers", "physical_office", "banking_relationships"];
11
- export type CompanyUsNexusTypeCode = (typeof COMPANY_US_NEXUS_TYPE_CODES)[number];
12
- /** Industry type codes for onboarding / business verification (paired with sub-industry). */
13
- export declare const COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES: readonly ["retail_consumer_goods", "financial_services", "food_agriculture", "healthcare_pharmaceuticals", "professional_services", "manufacturing_industrial", "real_estate_construction", "logistics_transportation", "wholesale_trade", "business_support_services", "escort_dating_adult_entertainment"];
14
- export type CompanyOnboardingIndustryTypeCode = (typeof COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES)[number];
15
- export declare const COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY: {
16
- readonly retail_consumer_goods: readonly ["grocery_stores_supermarkets", "convenience_stores", "specialty_food_retailers", "gas_stations_retail", "general_merchandise_department", "online_retail_ecommerce", "subscription_membership", "direct_to_consumer", "cannabis"];
17
- readonly financial_services: readonly ["banks_credit_unions", "fintech_payment_processing", "insurance_providers", "investment_advisors_broker", "lending_mortgage", "treasury_management", "personal_finance_apps", "retirement_planning", "real_estate_investment", "money_service_businesses", "cryptocurrency", "debt_collection", "payday_lending", "gambling"];
18
- readonly food_agriculture: readonly ["farms_agricultural", "food_wholesalers_distributors", "restaurants_cafes", "bars_nightclubs", "catering_services", "farmers_markets", "restaurant_tech_pos"];
19
- readonly healthcare_pharmaceuticals: readonly ["hospitals_clinics", "pharmacies", "medical_equipment", "biotechnology", "home_health", "healthcare_staffing", "wellness_benefits", "healthcare_social_assistance"];
20
- readonly professional_services: readonly ["legal_services", "accounting_auditing", "consulting_firms", "marketing_advertising", "real_estate_agents_property", "corporate_services_incorporation", "hr_workforce_management", "direct_marketing_telemarketing", "legal_accounting_consulting_programming"];
21
- readonly manufacturing_industrial: readonly ["chemical_manufacturing", "electronics_hardware", "automotive_manufacturing", "construction_materials", "textiles_apparel", "mining"];
22
- readonly real_estate_construction: readonly ["real_estate", "construction"];
23
- readonly logistics_transportation: readonly ["transportation_warehousing"];
24
- readonly wholesale_trade: readonly ["wholesale_trade"];
25
- readonly business_support_services: readonly ["business_support_building"];
26
- readonly escort_dating_adult_entertainment: readonly ["escort_services", "dating_adult_entertainment"];
27
- };
28
- export type CompanyOnboardingSubIndustryTypeCode = {
29
- [K in keyof typeof COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY]: (typeof COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY)[K][number];
30
- }[keyof typeof COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY];
31
- export declare function getCompanyOnboardingSubIndustryCodesForIndustry(industryTypeCode: string | undefined | null): CompanyOnboardingSubIndustryTypeCode[];
32
3
  export interface CompanyOfficerVerificationPayload {
33
4
  additional_submitted_documents_for_verification_file_ids: {
34
5
  social_security_card: ID[];
@@ -95,14 +66,13 @@ export interface CompanyDetailsVerificationPayload {
95
66
  company_countries_of_operations?: string[];
96
67
  company_inc_state?: string | null;
97
68
  company_industry_sub_type?: string;
98
- company_industry_type?: string;
99
- company_purpose_of_account?: CompanyPurposeOfAccountCode;
69
+ company_purpose_of_account?: string;
100
70
  company_purpose_of_account_desc?: string;
101
71
  company_regulated_states?: boolean;
102
72
  company_regulated_states_desc?: string;
103
- company_source_of_funds?: CompanySourceOfFundsCode;
73
+ company_source_of_funds?: string;
104
74
  company_source_of_funds_desc?: string;
105
- company_transaction_vol_expectations?: CompanyTransactionVolumeCode;
75
+ company_transaction_vol_expectations?: string;
106
76
  company_transaction_vol_expectations_desc?: string;
107
77
  company_us_nexus?: boolean;
108
78
  company_us_nexus_desc?: string[];
@@ -1,152 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY = exports.COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES = exports.COMPANY_US_NEXUS_TYPE_CODES = exports.COMPANY_PURPOSE_OF_ACCOUNT_CODES = exports.COMPANY_SOURCE_OF_FUNDS_CODES = exports.COMPANY_TRANSACTION_VOLUME_CODES = void 0;
4
- exports.getCompanyOnboardingSubIndustryCodesForIndustry = getCompanyOnboardingSubIndustryCodesForIndustry;
5
- exports.COMPANY_TRANSACTION_VOLUME_CODES = [
6
- 'less_than_10000',
7
- '10000_50000',
8
- '50001_250000',
9
- '250001_1000000',
10
- '1000001_2000000',
11
- 'over_2000000',
12
- ];
13
- exports.COMPANY_SOURCE_OF_FUNDS_CODES = [
14
- 'sales_of_goods',
15
- 'sales_of_services',
16
- 'customer_payments',
17
- 'investment_capital',
18
- 'business_loans',
19
- 'owner_contributions',
20
- 'franchise_revenue',
21
- 'rental_income',
22
- 'government_contracts_grants',
23
- 'donations_fundraising',
24
- 'membership_fees_subscriptions',
25
- 'licensing_royalties',
26
- 'commission_income',
27
- 'import_export_revenue',
28
- 'cryptocurrency_activity',
29
- ];
30
- exports.COMPANY_PURPOSE_OF_ACCOUNT_CODES = [
31
- 'retail_sales',
32
- 'ecommerce_sales',
33
- 'cash_heavy_operations',
34
- 'import_export_trade',
35
- 'professional_services_not_handling_funds',
36
- 'professional_services_handling_funds',
37
- 'holding_investment_company',
38
- 'property_management_real_estate',
39
- 'charitable_nonprofit',
40
- 'construction_contracting',
41
- 'commercial_cash_operations',
42
- 'freight_forwarding_logistics',
43
- 'third_party_payment_processing',
44
- 'technology_startup',
45
- 'wholesale_distribution',
46
- 'franchise_operation',
47
- 'healthcare_provider',
48
- 'educational_institution',
49
- ];
50
- /** Keys for company_us_nexus_desc / form usNexusTypes (labels from usNexusOptions in app locale). */
51
- exports.COMPANY_US_NEXUS_TYPE_CODES = [
52
- 'employees',
53
- 'customers',
54
- 'physical_office',
55
- 'banking_relationships',
56
- ];
57
- /** Industry type codes for onboarding / business verification (paired with sub-industry). */
58
- exports.COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES = [
59
- 'retail_consumer_goods',
60
- 'financial_services',
61
- 'food_agriculture',
62
- 'healthcare_pharmaceuticals',
63
- 'professional_services',
64
- 'manufacturing_industrial',
65
- 'real_estate_construction',
66
- 'logistics_transportation',
67
- 'wholesale_trade',
68
- 'business_support_services',
69
- 'escort_dating_adult_entertainment',
70
- ];
71
- exports.COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY = {
72
- retail_consumer_goods: [
73
- 'grocery_stores_supermarkets',
74
- 'convenience_stores',
75
- 'specialty_food_retailers',
76
- 'gas_stations_retail',
77
- 'general_merchandise_department',
78
- 'online_retail_ecommerce',
79
- 'subscription_membership',
80
- 'direct_to_consumer',
81
- 'cannabis',
82
- ],
83
- financial_services: [
84
- 'banks_credit_unions',
85
- 'fintech_payment_processing',
86
- 'insurance_providers',
87
- 'investment_advisors_broker',
88
- 'lending_mortgage',
89
- 'treasury_management',
90
- 'personal_finance_apps',
91
- 'retirement_planning',
92
- 'real_estate_investment',
93
- 'money_service_businesses',
94
- 'cryptocurrency',
95
- 'debt_collection',
96
- 'payday_lending',
97
- 'gambling',
98
- ],
99
- food_agriculture: [
100
- 'farms_agricultural',
101
- 'food_wholesalers_distributors',
102
- 'restaurants_cafes',
103
- 'bars_nightclubs',
104
- 'catering_services',
105
- 'farmers_markets',
106
- 'restaurant_tech_pos',
107
- ],
108
- healthcare_pharmaceuticals: [
109
- 'hospitals_clinics',
110
- 'pharmacies',
111
- 'medical_equipment',
112
- 'biotechnology',
113
- 'home_health',
114
- 'healthcare_staffing',
115
- 'wellness_benefits',
116
- 'healthcare_social_assistance',
117
- ],
118
- professional_services: [
119
- 'legal_services',
120
- 'accounting_auditing',
121
- 'consulting_firms',
122
- 'marketing_advertising',
123
- 'real_estate_agents_property',
124
- 'corporate_services_incorporation',
125
- 'hr_workforce_management',
126
- 'direct_marketing_telemarketing',
127
- 'legal_accounting_consulting_programming',
128
- ],
129
- manufacturing_industrial: [
130
- 'chemical_manufacturing',
131
- 'electronics_hardware',
132
- 'automotive_manufacturing',
133
- 'construction_materials',
134
- 'textiles_apparel',
135
- 'mining',
136
- ],
137
- real_estate_construction: ['real_estate', 'construction'],
138
- logistics_transportation: ['transportation_warehousing'],
139
- wholesale_trade: ['wholesale_trade'],
140
- business_support_services: ['business_support_building'],
141
- escort_dating_adult_entertainment: [
142
- 'escort_services',
143
- 'dating_adult_entertainment',
144
- ],
145
- };
146
- function getCompanyOnboardingSubIndustryCodesForIndustry(industryTypeCode) {
147
- if (industryTypeCode == null || industryTypeCode === '') {
148
- return [];
149
- }
150
- const row = exports.COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY[industryTypeCode];
151
- return row != null ? [...row] : [];
152
- }
@@ -98,11 +98,11 @@ exports.allTaskStatus = [
98
98
  },
99
99
  {
100
100
  code: 'done',
101
- name: 'Done',
101
+ name: 'In Review',
102
102
  },
103
103
  {
104
104
  code: 'resolved',
105
- name: 'Resolved',
105
+ name: 'Complete',
106
106
  },
107
107
  ];
108
108
  exports.allTaskPriority = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.19.77-betaAS3",
3
+ "version": "4.19.77-betaML99",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",