@hectare/platform.clients.customers 1.1.1

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 (101) hide show
  1. package/index.d.ts +49 -0
  2. package/index.js +1 -0
  3. package/models/AssuranceDetail.d.ts +14 -0
  4. package/models/AssuranceDetail.js +1 -0
  5. package/models/BusinessConnectionDetail.d.ts +46 -0
  6. package/models/BusinessConnectionDetail.js +1 -0
  7. package/models/BusinessConnectionsSummary.d.ts +49 -0
  8. package/models/BusinessConnectionsSummary.js +1 -0
  9. package/models/BusinessDetail.d.ts +49 -0
  10. package/models/BusinessDetail.js +1 -0
  11. package/models/BusinessUnitSummary.d.ts +8 -0
  12. package/models/BusinessUnitSummary.js +1 -0
  13. package/models/BusinessUnitsDetail.d.ts +58 -0
  14. package/models/BusinessUnitsDetail.js +1 -0
  15. package/models/BusinessUnitsDetails.d.ts +68 -0
  16. package/models/BusinessUnitsDetails.js +1 -0
  17. package/models/BusinessUnitsSummary.d.ts +16 -0
  18. package/models/BusinessUnitsSummary.js +1 -0
  19. package/models/BuyerPreferencesSchema.d.ts +9 -0
  20. package/models/BuyerPreferencesSchema.js +1 -0
  21. package/models/ChangeOwner.d.ts +3 -0
  22. package/models/ChangeOwner.js +1 -0
  23. package/models/ChangePassword.d.ts +6 -0
  24. package/models/ChangePassword.js +1 -0
  25. package/models/CheckBusinessConnectionRequestSchema.d.ts +3 -0
  26. package/models/CheckBusinessConnectionRequestSchema.js +1 -0
  27. package/models/CheckBusinessConnectionResponseSchema.d.ts +3 -0
  28. package/models/CheckBusinessConnectionResponseSchema.js +1 -0
  29. package/models/ConfirmSignup.d.ts +4 -0
  30. package/models/ConfirmSignup.js +1 -0
  31. package/models/ContactDetail.d.ts +11 -0
  32. package/models/ContactDetail.js +1 -0
  33. package/models/CreateBusinessConnection.d.ts +14 -0
  34. package/models/CreateBusinessConnection.js +1 -0
  35. package/models/CreateBusinessUnit.d.ts +42 -0
  36. package/models/CreateBusinessUnit.js +1 -0
  37. package/models/CreateBusinessUnits.d.ts +42 -0
  38. package/models/CreateBusinessUnits.js +1 -0
  39. package/models/CreateOrganisation.d.ts +72 -0
  40. package/models/CreateOrganisation.js +1 -0
  41. package/models/CreateOrganisationResponse.d.ts +222 -0
  42. package/models/CreateOrganisationResponse.js +1 -0
  43. package/models/CreateUnvettedOrganisationSchema.d.ts +11 -0
  44. package/models/CreateUnvettedOrganisationSchema.js +1 -0
  45. package/models/CreateUser.d.ts +11 -0
  46. package/models/CreateUser.js +1 -0
  47. package/models/CustomerConfig.d.ts +6 -0
  48. package/models/CustomerConfig.js +1 -0
  49. package/models/ForgottenPassword.d.ts +3 -0
  50. package/models/ForgottenPassword.js +1 -0
  51. package/models/ForgottenPasswordConfirm.d.ts +6 -0
  52. package/models/ForgottenPasswordConfirm.js +1 -0
  53. package/models/LoginForm.d.ts +5 -0
  54. package/models/LoginForm.js +1 -0
  55. package/models/LoginSuccess.d.ts +16 -0
  56. package/models/LoginSuccess.js +1 -0
  57. package/models/LoginTokens.d.ts +6 -0
  58. package/models/LoginTokens.js +1 -0
  59. package/models/LookupUserByTelephoneSchema.d.ts +3 -0
  60. package/models/LookupUserByTelephoneSchema.js +1 -0
  61. package/models/OrganisationDetail.d.ts +146 -0
  62. package/models/OrganisationDetail.js +1 -0
  63. package/models/OrganisationExists.d.ts +150 -0
  64. package/models/OrganisationExists.js +1 -0
  65. package/models/OrganisationSummary.d.ts +83 -0
  66. package/models/OrganisationSummary.js +1 -0
  67. package/models/PatchBusinessUnit.d.ts +44 -0
  68. package/models/PatchBusinessUnit.js +1 -0
  69. package/models/PatchOrganisation.d.ts +91 -0
  70. package/models/PatchOrganisation.js +1 -0
  71. package/models/PatchOrganisationAdvancePay.d.ts +6 -0
  72. package/models/PatchOrganisationAdvancePay.js +1 -0
  73. package/models/PatchUser.d.ts +28 -0
  74. package/models/PatchUser.js +1 -0
  75. package/models/RedTractorCertificate.d.ts +20 -0
  76. package/models/RedTractorCertificate.js +1 -0
  77. package/models/RequestFullAccountSchema.d.ts +10 -0
  78. package/models/RequestFullAccountSchema.js +1 -0
  79. package/models/SendMagicLogin.d.ts +4 -0
  80. package/models/SendMagicLogin.js +1 -0
  81. package/models/SetBuyerPreferences.d.ts +6 -0
  82. package/models/SetBuyerPreferences.js +1 -0
  83. package/models/SwapCognitoUserPoolRequest.d.ts +4 -0
  84. package/models/SwapCognitoUserPoolRequest.js +1 -0
  85. package/models/SwapCognitoUserPoolResponse.d.ts +5 -0
  86. package/models/SwapCognitoUserPoolResponse.js +1 -0
  87. package/models/UserAccess.d.ts +24 -0
  88. package/models/UserAccess.js +1 -0
  89. package/models/UserBasicInfo.d.ts +71 -0
  90. package/models/UserBasicInfo.js +1 -0
  91. package/models/UserDetail.d.ts +74 -0
  92. package/models/UserDetail.js +1 -0
  93. package/models/UserProfile.d.ts +253 -0
  94. package/models/UserProfile.js +1 -0
  95. package/models/VerifyMagicLogin.d.ts +3 -0
  96. package/models/VerifyMagicLogin.js +1 -0
  97. package/models/VerifyUpdate.d.ts +4 -0
  98. package/models/VerifyUpdate.js +1 -0
  99. package/models/VerifyUserAttribute.d.ts +3 -0
  100. package/models/VerifyUserAttribute.js +1 -0
  101. package/package.json +13 -0
package/index.d.ts ADDED
@@ -0,0 +1,49 @@
1
+ export type { AssuranceDetail } from './models/AssuranceDetail.js';
2
+ export type { BusinessConnectionDetail } from './models/BusinessConnectionDetail.js';
3
+ export type { BusinessConnectionsSummary } from './models/BusinessConnectionsSummary.js';
4
+ export type { BusinessDetail } from './models/BusinessDetail.js';
5
+ export type { BusinessUnitsDetail } from './models/BusinessUnitsDetail.js';
6
+ export type { BusinessUnitsDetails } from './models/BusinessUnitsDetails.js';
7
+ export type { BusinessUnitsSummary } from './models/BusinessUnitsSummary.js';
8
+ export type { BusinessUnitSummary } from './models/BusinessUnitSummary.js';
9
+ export type { BuyerPreferencesSchema } from './models/BuyerPreferencesSchema.js';
10
+ export type { ChangeOwner } from './models/ChangeOwner.js';
11
+ export type { ChangePassword } from './models/ChangePassword.js';
12
+ export type { CheckBusinessConnectionRequestSchema } from './models/CheckBusinessConnectionRequestSchema.js';
13
+ export type { CheckBusinessConnectionResponseSchema } from './models/CheckBusinessConnectionResponseSchema.js';
14
+ export type { ConfirmSignup } from './models/ConfirmSignup.js';
15
+ export type { ContactDetail } from './models/ContactDetail.js';
16
+ export type { CreateBusinessConnection } from './models/CreateBusinessConnection.js';
17
+ export type { CreateBusinessUnit } from './models/CreateBusinessUnit.js';
18
+ export type { CreateBusinessUnits } from './models/CreateBusinessUnits.js';
19
+ export type { CreateOrganisation } from './models/CreateOrganisation.js';
20
+ export type { CreateOrganisationResponse } from './models/CreateOrganisationResponse.js';
21
+ export type { CreateUnvettedOrganisationSchema } from './models/CreateUnvettedOrganisationSchema.js';
22
+ export type { CreateUser } from './models/CreateUser.js';
23
+ export type { CustomerConfig } from './models/CustomerConfig.js';
24
+ export type { ForgottenPassword } from './models/ForgottenPassword.js';
25
+ export type { ForgottenPasswordConfirm } from './models/ForgottenPasswordConfirm.js';
26
+ export type { LoginForm } from './models/LoginForm.js';
27
+ export type { LoginSuccess } from './models/LoginSuccess.js';
28
+ export type { LoginTokens } from './models/LoginTokens.js';
29
+ export type { LookupUserByTelephoneSchema } from './models/LookupUserByTelephoneSchema.js';
30
+ export type { OrganisationDetail } from './models/OrganisationDetail.js';
31
+ export type { OrganisationExists } from './models/OrganisationExists.js';
32
+ export type { OrganisationSummary } from './models/OrganisationSummary.js';
33
+ export type { PatchBusinessUnit } from './models/PatchBusinessUnit.js';
34
+ export type { PatchOrganisation } from './models/PatchOrganisation.js';
35
+ export type { PatchOrganisationAdvancePay } from './models/PatchOrganisationAdvancePay.js';
36
+ export type { PatchUser } from './models/PatchUser.js';
37
+ export type { RedTractorCertificate } from './models/RedTractorCertificate.js';
38
+ export type { RequestFullAccountSchema } from './models/RequestFullAccountSchema.js';
39
+ export type { SendMagicLogin } from './models/SendMagicLogin.js';
40
+ export type { SetBuyerPreferences } from './models/SetBuyerPreferences.js';
41
+ export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
42
+ export type { SwapCognitoUserPoolResponse } from './models/SwapCognitoUserPoolResponse.js';
43
+ export type { UserAccess } from './models/UserAccess.js';
44
+ export type { UserBasicInfo } from './models/UserBasicInfo.js';
45
+ export type { UserDetail } from './models/UserDetail.js';
46
+ export type { UserProfile } from './models/UserProfile.js';
47
+ export type { VerifyMagicLogin } from './models/VerifyMagicLogin.js';
48
+ export type { VerifyUpdate } from './models/VerifyUpdate.js';
49
+ export type { VerifyUserAttribute } from './models/VerifyUserAttribute.js';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ export type AssuranceDetail = {
2
+ membershipId: string;
3
+ name: string;
4
+ holdingNumber: string;
5
+ county: string;
6
+ postcode: string;
7
+ address: string;
8
+ contactName: string;
9
+ scheme: 'RT' | 'SQC';
10
+ assured: boolean;
11
+ certificationStartDate: string;
12
+ certificationEndDate: string;
13
+ certificateUrl: string;
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,46 @@
1
+ export type BusinessConnectionDetail = {
2
+ organisationId?: string;
3
+ organisationName?: string;
4
+ relationship?: Array<string>;
5
+ contacts?: Array<{
6
+ givenName?: string;
7
+ familyName?: string;
8
+ phone?: {
9
+ callingCode: string;
10
+ number: string;
11
+ };
12
+ email?: string;
13
+ id?: string;
14
+ authPlatformId?: string;
15
+ }>;
16
+ location?: {
17
+ what3words: string | null;
18
+ address: {
19
+ name?: string | null;
20
+ line1: string;
21
+ line2?: string | null;
22
+ line3?: string | null;
23
+ city?: string | null;
24
+ region?: string | null;
25
+ regionISO?: string | null;
26
+ postcode: string;
27
+ countryName?: string | null;
28
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
29
+ };
30
+ coordinates: {
31
+ lat: number;
32
+ lon: number;
33
+ };
34
+ } | null;
35
+ countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
36
+ ownerContact?: {
37
+ id?: string;
38
+ email?: string;
39
+ familyName?: string;
40
+ givenName?: string;
41
+ phone?: {
42
+ callingCode: string;
43
+ number: string;
44
+ };
45
+ };
46
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ export type BusinessConnectionsSummary = {
2
+ id?: string;
3
+ connectedOrganisations?: Array<{
4
+ organisationId?: string;
5
+ organisationName?: string;
6
+ relationship?: Array<string>;
7
+ contacts?: Array<{
8
+ givenName?: string;
9
+ familyName?: string;
10
+ phone?: {
11
+ callingCode: string;
12
+ number: string;
13
+ };
14
+ email?: string;
15
+ id?: string;
16
+ authPlatformId?: string;
17
+ }>;
18
+ location?: {
19
+ what3words: string | null;
20
+ address: {
21
+ name?: string | null;
22
+ line1: string;
23
+ line2?: string | null;
24
+ line3?: string | null;
25
+ city?: string | null;
26
+ region?: string | null;
27
+ regionISO?: string | null;
28
+ postcode: string;
29
+ countryName?: string | null;
30
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
31
+ };
32
+ coordinates: {
33
+ lat: number;
34
+ lon: number;
35
+ };
36
+ } | null;
37
+ countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
38
+ ownerContact?: {
39
+ id?: string;
40
+ email?: string;
41
+ familyName?: string;
42
+ givenName?: string;
43
+ phone?: {
44
+ callingCode: string;
45
+ number: string;
46
+ };
47
+ };
48
+ }>;
49
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,49 @@
1
+ export type BusinessDetail = {
2
+ id?: string;
3
+ businessUnitId?: string;
4
+ organisationId?: string;
5
+ location?: {
6
+ what3words: string | null;
7
+ address: {
8
+ name?: string | null;
9
+ line1: string;
10
+ line2?: string | null;
11
+ line3?: string | null;
12
+ city?: string | null;
13
+ region?: string | null;
14
+ regionISO?: string | null;
15
+ postcode: string;
16
+ countryName?: string | null;
17
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
18
+ };
19
+ coordinates: {
20
+ lat: number;
21
+ lon: number;
22
+ };
23
+ } | null;
24
+ businessName?: string;
25
+ name?: string;
26
+ phone?: {
27
+ callingCode: string;
28
+ number: string;
29
+ };
30
+ email?: string;
31
+ tags?: Array<string>;
32
+ locationTag?: string;
33
+ managementTag?: string;
34
+ assuranceScheme?: 'RT' | 'SQC';
35
+ holdingNumber?: string;
36
+ sqc?: {
37
+ number: string;
38
+ isAssured: boolean;
39
+ } | null;
40
+ assurances?: Array<{
41
+ id: string | null;
42
+ body: 'RT' | 'SQC';
43
+ assured: boolean;
44
+ }>;
45
+ assurance?: {
46
+ id: string | null;
47
+ body: 'RT' | 'SQC';
48
+ };
49
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export type BusinessUnitSummary = {
2
+ id: string;
3
+ name: string;
4
+ type: string;
5
+ business: string;
6
+ region: string;
7
+ tags: Array<string>;
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,58 @@
1
+ export type BusinessUnitsDetail = {
2
+ ordinal: number;
3
+ id: string;
4
+ name: string;
5
+ type: 'farm' | 'stores' | 'region';
6
+ tags: Array<string>;
7
+ business?: {
8
+ id?: string;
9
+ businessUnitId?: string;
10
+ organisationId?: string;
11
+ location?: {
12
+ what3words: string | null;
13
+ address: {
14
+ name?: string | null;
15
+ line1: string;
16
+ line2?: string | null;
17
+ line3?: string | null;
18
+ city?: string | null;
19
+ region?: string | null;
20
+ regionISO?: string | null;
21
+ postcode: string;
22
+ countryName?: string | null;
23
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
24
+ };
25
+ coordinates: {
26
+ lat: number;
27
+ lon: number;
28
+ };
29
+ } | null;
30
+ businessName?: string;
31
+ name?: string;
32
+ phone?: {
33
+ callingCode: string;
34
+ number: string;
35
+ };
36
+ email?: string;
37
+ tags?: Array<string>;
38
+ locationTag?: string;
39
+ managementTag?: string;
40
+ assuranceScheme?: 'RT' | 'SQC';
41
+ holdingNumber?: string;
42
+ sqc?: {
43
+ number: string;
44
+ isAssured: boolean;
45
+ } | null;
46
+ assurances?: Array<{
47
+ id: string | null;
48
+ body: 'RT' | 'SQC';
49
+ assured: boolean;
50
+ }>;
51
+ assurance?: {
52
+ id: string | null;
53
+ body: 'RT' | 'SQC';
54
+ };
55
+ };
56
+ storeCount?: number;
57
+ fieldCount?: number;
58
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,68 @@
1
+ export type BusinessUnitsDetails = {
2
+ id: string;
3
+ organisationId: string;
4
+ organisationName: string;
5
+ organisationRegionISO?: string;
6
+ tagGroups?: Array<{
7
+ name: string;
8
+ tags: Array<string>;
9
+ }>;
10
+ businessUnits: Array<{
11
+ ordinal: number;
12
+ id: string;
13
+ name: string;
14
+ type: 'farm' | 'stores' | 'region';
15
+ tags: Array<string>;
16
+ business?: {
17
+ id?: string;
18
+ businessUnitId?: string;
19
+ organisationId?: string;
20
+ location?: {
21
+ what3words: string | null;
22
+ address: {
23
+ name?: string | null;
24
+ line1: string;
25
+ line2?: string | null;
26
+ line3?: string | null;
27
+ city?: string | null;
28
+ region?: string | null;
29
+ regionISO?: string | null;
30
+ postcode: string;
31
+ countryName?: string | null;
32
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
33
+ };
34
+ coordinates: {
35
+ lat: number;
36
+ lon: number;
37
+ };
38
+ } | null;
39
+ businessName?: string;
40
+ name?: string;
41
+ phone?: {
42
+ callingCode: string;
43
+ number: string;
44
+ };
45
+ email?: string;
46
+ tags?: Array<string>;
47
+ locationTag?: string;
48
+ managementTag?: string;
49
+ assuranceScheme?: 'RT' | 'SQC';
50
+ holdingNumber?: string;
51
+ sqc?: {
52
+ number: string;
53
+ isAssured: boolean;
54
+ } | null;
55
+ assurances?: Array<{
56
+ id: string | null;
57
+ body: 'RT' | 'SQC';
58
+ assured: boolean;
59
+ }>;
60
+ assurance?: {
61
+ id: string | null;
62
+ body: 'RT' | 'SQC';
63
+ };
64
+ };
65
+ storeCount?: number;
66
+ fieldCount?: number;
67
+ }>;
68
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export type BusinessUnitsSummary = {
2
+ organisationId: string;
3
+ organisationName: string;
4
+ tagGroups?: Array<{
5
+ name: string;
6
+ tags: Array<string>;
7
+ }>;
8
+ businessUnits: Array<{
9
+ id: string;
10
+ name: string;
11
+ type: string;
12
+ business: string;
13
+ region: string;
14
+ tags: Array<string>;
15
+ }>;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export type BuyerPreferencesSchema = {
2
+ preferences: Array<{
3
+ commodity: number | null;
4
+ grades: Array<number>;
5
+ regions: Array<string>;
6
+ enabled?: boolean;
7
+ }>;
8
+ notificationsEnabled: boolean;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type ChangeOwner = {
2
+ newOwnerUserId: string;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type ChangePassword = {
2
+ email?: string | null;
3
+ oldPassword: string;
4
+ newPassword: string;
5
+ confirmNewPassword: string;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type CheckBusinessConnectionRequestSchema = {
2
+ organisationId: string;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type CheckBusinessConnectionResponseSchema = {
2
+ isInNetwork: boolean;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type ConfirmSignup = {
2
+ username: string;
3
+ confirmationCode: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export type ContactDetail = {
2
+ givenName?: string;
3
+ familyName?: string;
4
+ phone?: {
5
+ callingCode: string;
6
+ number: string;
7
+ };
8
+ email?: string;
9
+ id?: string;
10
+ authPlatformId?: string;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ export type CreateBusinessConnection = {
2
+ id?: string | null;
3
+ companyNumber?: string | null;
4
+ countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
5
+ name?: string;
6
+ relationship?: 'trading' | 'storage' | 'carrier' | 'organiser' | null;
7
+ contacts: Array<{
8
+ id?: string | null;
9
+ givenName: string;
10
+ familyName: string;
11
+ email: string;
12
+ phone: string | null;
13
+ }>;
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ export type CreateBusinessUnit = {
2
+ organisationId: string;
3
+ name: string;
4
+ type: 'farm' | 'stores' | 'region';
5
+ business?: {
6
+ location: {
7
+ what3words: string | null;
8
+ address: {
9
+ name?: string | null;
10
+ line1: string;
11
+ line2?: string | null;
12
+ line3?: string | null;
13
+ city?: string | null;
14
+ region?: string | null;
15
+ regionISO?: string | null;
16
+ postcode: string;
17
+ countryName?: string | null;
18
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
19
+ };
20
+ coordinates: {
21
+ lat: number;
22
+ lon: number;
23
+ };
24
+ } | null;
25
+ name: string;
26
+ phoneNumber: string | null;
27
+ email: string;
28
+ locationTag?: string;
29
+ managementTag?: string;
30
+ holdingNumber: string;
31
+ sqc?: {
32
+ number: string;
33
+ isAssured: boolean;
34
+ } | null;
35
+ assuranceScheme?: 'RT' | 'SQC';
36
+ assurances?: Array<{
37
+ id: string | null;
38
+ body: 'RT' | 'SQC';
39
+ assured: boolean;
40
+ }>;
41
+ };
42
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ export type CreateBusinessUnits = Array<{
2
+ organisationId: string;
3
+ name: string;
4
+ type: 'farm' | 'stores' | 'region';
5
+ business?: {
6
+ location: {
7
+ what3words: string | null;
8
+ address: {
9
+ name?: string | null;
10
+ line1: string;
11
+ line2?: string | null;
12
+ line3?: string | null;
13
+ city?: string | null;
14
+ region?: string | null;
15
+ regionISO?: string | null;
16
+ postcode: string;
17
+ countryName?: string | null;
18
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
19
+ };
20
+ coordinates: {
21
+ lat: number;
22
+ lon: number;
23
+ };
24
+ } | null;
25
+ name: string;
26
+ phoneNumber: string | null;
27
+ email: string;
28
+ locationTag?: string;
29
+ managementTag?: string;
30
+ holdingNumber: string;
31
+ sqc?: {
32
+ number: string;
33
+ isAssured: boolean;
34
+ } | null;
35
+ assuranceScheme?: 'RT' | 'SQC';
36
+ assurances?: Array<{
37
+ id: string | null;
38
+ body: 'RT' | 'SQC';
39
+ assured: boolean;
40
+ }>;
41
+ };
42
+ }>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,72 @@
1
+ export type CreateOrganisation = {
2
+ location: {
3
+ what3words: string | null;
4
+ address: {
5
+ name?: string | null;
6
+ line1: string;
7
+ line2?: string | null;
8
+ line3?: string | null;
9
+ city?: string | null;
10
+ region?: string | null;
11
+ regionISO?: string | null;
12
+ postcode: string;
13
+ countryName?: string | null;
14
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
15
+ };
16
+ coordinates: {
17
+ lat: number;
18
+ lon: number;
19
+ };
20
+ } | null;
21
+ company?: {
22
+ assurances?: Array<{
23
+ id: string | null;
24
+ body: 'RT' | 'SQC';
25
+ assured: boolean;
26
+ }>;
27
+ assurance?: {
28
+ id: string | null;
29
+ body: 'RT' | 'SQC';
30
+ };
31
+ id?: string | null;
32
+ bio?: string | null;
33
+ website?: string | null;
34
+ holdingNumber?: string | null;
35
+ number?: string | null;
36
+ salesTaxId?: string | null;
37
+ logo?: {
38
+ id: string;
39
+ url: string | null;
40
+ } | null;
41
+ };
42
+ name: string | null;
43
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
44
+ ownerContact: {
45
+ phone: string | null;
46
+ email: string;
47
+ familyName: string;
48
+ givenName: string;
49
+ } | null;
50
+ contacts?: Array<{
51
+ phone: string | null;
52
+ email: string;
53
+ familyName: string;
54
+ givenName: string;
55
+ } | null>;
56
+ organisers?: Array<string>;
57
+ salesforceId?: string | null;
58
+ billing: {
59
+ amount: number;
60
+ currency: string;
61
+ period: 'month' | 'quarter' | 'year';
62
+ } | null;
63
+ modules: Array<{
64
+ id: string;
65
+ name?: string | null;
66
+ price: {
67
+ amount: number;
68
+ currency: string;
69
+ } | null;
70
+ }>;
71
+ signupPurpose?: Array<number>;
72
+ };
@@ -0,0 +1 @@
1
+ export {};