@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.
- package/index.d.ts +49 -0
- package/index.js +1 -0
- package/models/AssuranceDetail.d.ts +14 -0
- package/models/AssuranceDetail.js +1 -0
- package/models/BusinessConnectionDetail.d.ts +46 -0
- package/models/BusinessConnectionDetail.js +1 -0
- package/models/BusinessConnectionsSummary.d.ts +49 -0
- package/models/BusinessConnectionsSummary.js +1 -0
- package/models/BusinessDetail.d.ts +49 -0
- package/models/BusinessDetail.js +1 -0
- package/models/BusinessUnitSummary.d.ts +8 -0
- package/models/BusinessUnitSummary.js +1 -0
- package/models/BusinessUnitsDetail.d.ts +58 -0
- package/models/BusinessUnitsDetail.js +1 -0
- package/models/BusinessUnitsDetails.d.ts +68 -0
- package/models/BusinessUnitsDetails.js +1 -0
- package/models/BusinessUnitsSummary.d.ts +16 -0
- package/models/BusinessUnitsSummary.js +1 -0
- package/models/BuyerPreferencesSchema.d.ts +9 -0
- package/models/BuyerPreferencesSchema.js +1 -0
- package/models/ChangeOwner.d.ts +3 -0
- package/models/ChangeOwner.js +1 -0
- package/models/ChangePassword.d.ts +6 -0
- package/models/ChangePassword.js +1 -0
- package/models/CheckBusinessConnectionRequestSchema.d.ts +3 -0
- package/models/CheckBusinessConnectionRequestSchema.js +1 -0
- package/models/CheckBusinessConnectionResponseSchema.d.ts +3 -0
- package/models/CheckBusinessConnectionResponseSchema.js +1 -0
- package/models/ConfirmSignup.d.ts +4 -0
- package/models/ConfirmSignup.js +1 -0
- package/models/ContactDetail.d.ts +11 -0
- package/models/ContactDetail.js +1 -0
- package/models/CreateBusinessConnection.d.ts +14 -0
- package/models/CreateBusinessConnection.js +1 -0
- package/models/CreateBusinessUnit.d.ts +42 -0
- package/models/CreateBusinessUnit.js +1 -0
- package/models/CreateBusinessUnits.d.ts +42 -0
- package/models/CreateBusinessUnits.js +1 -0
- package/models/CreateOrganisation.d.ts +72 -0
- package/models/CreateOrganisation.js +1 -0
- package/models/CreateOrganisationResponse.d.ts +222 -0
- package/models/CreateOrganisationResponse.js +1 -0
- package/models/CreateUnvettedOrganisationSchema.d.ts +11 -0
- package/models/CreateUnvettedOrganisationSchema.js +1 -0
- package/models/CreateUser.d.ts +11 -0
- package/models/CreateUser.js +1 -0
- package/models/CustomerConfig.d.ts +6 -0
- package/models/CustomerConfig.js +1 -0
- package/models/ForgottenPassword.d.ts +3 -0
- package/models/ForgottenPassword.js +1 -0
- package/models/ForgottenPasswordConfirm.d.ts +6 -0
- package/models/ForgottenPasswordConfirm.js +1 -0
- package/models/LoginForm.d.ts +5 -0
- package/models/LoginForm.js +1 -0
- package/models/LoginSuccess.d.ts +16 -0
- package/models/LoginSuccess.js +1 -0
- package/models/LoginTokens.d.ts +6 -0
- package/models/LoginTokens.js +1 -0
- package/models/LookupUserByTelephoneSchema.d.ts +3 -0
- package/models/LookupUserByTelephoneSchema.js +1 -0
- package/models/OrganisationDetail.d.ts +146 -0
- package/models/OrganisationDetail.js +1 -0
- package/models/OrganisationExists.d.ts +150 -0
- package/models/OrganisationExists.js +1 -0
- package/models/OrganisationSummary.d.ts +83 -0
- package/models/OrganisationSummary.js +1 -0
- package/models/PatchBusinessUnit.d.ts +44 -0
- package/models/PatchBusinessUnit.js +1 -0
- package/models/PatchOrganisation.d.ts +91 -0
- package/models/PatchOrganisation.js +1 -0
- package/models/PatchOrganisationAdvancePay.d.ts +6 -0
- package/models/PatchOrganisationAdvancePay.js +1 -0
- package/models/PatchUser.d.ts +28 -0
- package/models/PatchUser.js +1 -0
- package/models/RedTractorCertificate.d.ts +20 -0
- package/models/RedTractorCertificate.js +1 -0
- package/models/RequestFullAccountSchema.d.ts +10 -0
- package/models/RequestFullAccountSchema.js +1 -0
- package/models/SendMagicLogin.d.ts +4 -0
- package/models/SendMagicLogin.js +1 -0
- package/models/SetBuyerPreferences.d.ts +6 -0
- package/models/SetBuyerPreferences.js +1 -0
- package/models/SwapCognitoUserPoolRequest.d.ts +4 -0
- package/models/SwapCognitoUserPoolRequest.js +1 -0
- package/models/SwapCognitoUserPoolResponse.d.ts +5 -0
- package/models/SwapCognitoUserPoolResponse.js +1 -0
- package/models/UserAccess.d.ts +24 -0
- package/models/UserAccess.js +1 -0
- package/models/UserBasicInfo.d.ts +71 -0
- package/models/UserBasicInfo.js +1 -0
- package/models/UserDetail.d.ts +74 -0
- package/models/UserDetail.js +1 -0
- package/models/UserProfile.d.ts +253 -0
- package/models/UserProfile.js +1 -0
- package/models/VerifyMagicLogin.d.ts +3 -0
- package/models/VerifyMagicLogin.js +1 -0
- package/models/VerifyUpdate.d.ts +4 -0
- package/models/VerifyUpdate.js +1 -0
- package/models/VerifyUserAttribute.d.ts +3 -0
- package/models/VerifyUserAttribute.js +1 -0
- 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 @@
|
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|