@hectare/platform.clients.customers 1.1.61 → 1.1.63
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/models/CreateOrganisationResponse.d.ts +11 -11
- package/models/OrganisationDetail.d.ts +11 -11
- package/models/OrganisationExists.d.ts +11 -11
- package/models/OrganisationSummary.d.ts +14 -14
- package/models/SearchResultsOrganisationDetailSchema.d.ts +13 -13
- package/models/SearchResultsUserDetailSchema.d.ts +2 -2
- package/models/UserProfile.d.ts +11 -11
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type CreateOrganisationResponse = {
|
|
2
2
|
organisation?: {
|
|
3
|
-
id
|
|
4
|
-
location
|
|
3
|
+
id: string;
|
|
4
|
+
location: {
|
|
5
5
|
what3words: string | null;
|
|
6
6
|
address: {
|
|
7
7
|
name?: string | null;
|
|
@@ -20,7 +20,7 @@ export type CreateOrganisationResponse = {
|
|
|
20
20
|
lon: number;
|
|
21
21
|
} | null;
|
|
22
22
|
} | null;
|
|
23
|
-
company
|
|
23
|
+
company: {
|
|
24
24
|
assurance?: {
|
|
25
25
|
id: string | null;
|
|
26
26
|
key?: string | null;
|
|
@@ -40,9 +40,9 @@ export type CreateOrganisationResponse = {
|
|
|
40
40
|
} | null;
|
|
41
41
|
};
|
|
42
42
|
companyNumber?: string | null;
|
|
43
|
-
countryISO
|
|
44
|
-
name
|
|
45
|
-
ownerContact
|
|
43
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
+
name: string;
|
|
45
|
+
ownerContact: {
|
|
46
46
|
id?: string;
|
|
47
47
|
email?: string;
|
|
48
48
|
phone?: {
|
|
@@ -58,9 +58,9 @@ export type CreateOrganisationResponse = {
|
|
|
58
58
|
name: string;
|
|
59
59
|
email: string;
|
|
60
60
|
}>;
|
|
61
|
-
status
|
|
61
|
+
status: 'active' | 'pending' | 'suspended';
|
|
62
62
|
statusMessage?: string;
|
|
63
|
-
businessUnits
|
|
63
|
+
businessUnits: Array<{
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
type?: string;
|
|
@@ -68,14 +68,14 @@ export type CreateOrganisationResponse = {
|
|
|
68
68
|
region: string | null;
|
|
69
69
|
tags: Array<string>;
|
|
70
70
|
}>;
|
|
71
|
-
modules
|
|
71
|
+
modules: Array<{
|
|
72
72
|
id: string;
|
|
73
73
|
name?: string | null;
|
|
74
74
|
}>;
|
|
75
|
-
vetted
|
|
75
|
+
vetted: boolean;
|
|
76
76
|
rejected?: boolean;
|
|
77
77
|
isMerchant?: boolean;
|
|
78
|
-
createdAtUTC
|
|
78
|
+
createdAtUTC: string;
|
|
79
79
|
advancePay?: {
|
|
80
80
|
accountName: string;
|
|
81
81
|
sortCode: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type OrganisationDetail = {
|
|
2
|
-
id
|
|
3
|
-
location
|
|
2
|
+
id: string;
|
|
3
|
+
location: {
|
|
4
4
|
what3words: string | null;
|
|
5
5
|
address: {
|
|
6
6
|
name?: string | null;
|
|
@@ -19,7 +19,7 @@ export type OrganisationDetail = {
|
|
|
19
19
|
lon: number;
|
|
20
20
|
} | null;
|
|
21
21
|
} | null;
|
|
22
|
-
company
|
|
22
|
+
company: {
|
|
23
23
|
assurance?: {
|
|
24
24
|
id: string | null;
|
|
25
25
|
key?: string | null;
|
|
@@ -39,9 +39,9 @@ export type OrganisationDetail = {
|
|
|
39
39
|
} | null;
|
|
40
40
|
};
|
|
41
41
|
companyNumber?: string | null;
|
|
42
|
-
countryISO
|
|
43
|
-
name
|
|
44
|
-
ownerContact
|
|
42
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
43
|
+
name: string;
|
|
44
|
+
ownerContact: {
|
|
45
45
|
id?: string;
|
|
46
46
|
email?: string;
|
|
47
47
|
phone?: {
|
|
@@ -57,9 +57,9 @@ export type OrganisationDetail = {
|
|
|
57
57
|
name: string;
|
|
58
58
|
email: string;
|
|
59
59
|
}>;
|
|
60
|
-
status
|
|
60
|
+
status: 'active' | 'pending' | 'suspended';
|
|
61
61
|
statusMessage?: string;
|
|
62
|
-
businessUnits
|
|
62
|
+
businessUnits: Array<{
|
|
63
63
|
id: string;
|
|
64
64
|
name: string;
|
|
65
65
|
type?: string;
|
|
@@ -67,14 +67,14 @@ export type OrganisationDetail = {
|
|
|
67
67
|
region: string | null;
|
|
68
68
|
tags: Array<string>;
|
|
69
69
|
}>;
|
|
70
|
-
modules
|
|
70
|
+
modules: Array<{
|
|
71
71
|
id: string;
|
|
72
72
|
name?: string | null;
|
|
73
73
|
}>;
|
|
74
|
-
vetted
|
|
74
|
+
vetted: boolean;
|
|
75
75
|
rejected?: boolean;
|
|
76
76
|
isMerchant?: boolean;
|
|
77
|
-
createdAtUTC
|
|
77
|
+
createdAtUTC: string;
|
|
78
78
|
advancePay?: {
|
|
79
79
|
accountName: string;
|
|
80
80
|
sortCode: string;
|
|
@@ -2,8 +2,8 @@ export type OrganisationExists = {
|
|
|
2
2
|
status?: 'ok' | 'user-exists' | 'organisation-exists';
|
|
3
3
|
blockNewConnection?: boolean;
|
|
4
4
|
organisations?: Array<{
|
|
5
|
-
id
|
|
6
|
-
location
|
|
5
|
+
id: string;
|
|
6
|
+
location: {
|
|
7
7
|
what3words: string | null;
|
|
8
8
|
address: {
|
|
9
9
|
name?: string | null;
|
|
@@ -22,7 +22,7 @@ export type OrganisationExists = {
|
|
|
22
22
|
lon: number;
|
|
23
23
|
} | null;
|
|
24
24
|
} | null;
|
|
25
|
-
company
|
|
25
|
+
company: {
|
|
26
26
|
assurance?: {
|
|
27
27
|
id: string | null;
|
|
28
28
|
key?: string | null;
|
|
@@ -42,9 +42,9 @@ export type OrganisationExists = {
|
|
|
42
42
|
} | null;
|
|
43
43
|
};
|
|
44
44
|
companyNumber?: string | null;
|
|
45
|
-
countryISO
|
|
46
|
-
name
|
|
47
|
-
ownerContact
|
|
45
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
46
|
+
name: string;
|
|
47
|
+
ownerContact: {
|
|
48
48
|
id?: string;
|
|
49
49
|
email?: string;
|
|
50
50
|
phone?: {
|
|
@@ -60,9 +60,9 @@ export type OrganisationExists = {
|
|
|
60
60
|
name: string;
|
|
61
61
|
email: string;
|
|
62
62
|
}>;
|
|
63
|
-
status
|
|
63
|
+
status: 'active' | 'pending' | 'suspended';
|
|
64
64
|
statusMessage?: string;
|
|
65
|
-
businessUnits
|
|
65
|
+
businessUnits: Array<{
|
|
66
66
|
id: string;
|
|
67
67
|
name: string;
|
|
68
68
|
type?: string;
|
|
@@ -70,14 +70,14 @@ export type OrganisationExists = {
|
|
|
70
70
|
region: string | null;
|
|
71
71
|
tags: Array<string>;
|
|
72
72
|
}>;
|
|
73
|
-
modules
|
|
73
|
+
modules: Array<{
|
|
74
74
|
id: string;
|
|
75
75
|
name?: string | null;
|
|
76
76
|
}>;
|
|
77
|
-
vetted
|
|
77
|
+
vetted: boolean;
|
|
78
78
|
rejected?: boolean;
|
|
79
79
|
isMerchant?: boolean;
|
|
80
|
-
createdAtUTC
|
|
80
|
+
createdAtUTC: string;
|
|
81
81
|
advancePay?: {
|
|
82
82
|
accountName: string;
|
|
83
83
|
sortCode: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export type OrganisationSummary = {
|
|
2
|
-
id
|
|
3
|
-
businessId
|
|
4
|
-
businessUnitId
|
|
5
|
-
createdAtUTC
|
|
6
|
-
name
|
|
7
|
-
location
|
|
2
|
+
id: string;
|
|
3
|
+
businessId: string;
|
|
4
|
+
businessUnitId: string;
|
|
5
|
+
createdAtUTC: string;
|
|
6
|
+
name: string;
|
|
7
|
+
location: {
|
|
8
8
|
what3words: string | null;
|
|
9
9
|
address: {
|
|
10
10
|
name?: string | null;
|
|
@@ -23,12 +23,12 @@ export type OrganisationSummary = {
|
|
|
23
23
|
lon: number;
|
|
24
24
|
} | null;
|
|
25
25
|
} | null;
|
|
26
|
-
countryISO
|
|
27
|
-
status
|
|
28
|
-
companyId
|
|
26
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
27
|
+
status: 'active' | 'pending' | 'suspended';
|
|
28
|
+
companyId: string;
|
|
29
29
|
companyHoldingNumber?: string;
|
|
30
|
-
bio
|
|
31
|
-
logo
|
|
30
|
+
bio: string;
|
|
31
|
+
logo: {
|
|
32
32
|
name?: string;
|
|
33
33
|
id: string;
|
|
34
34
|
url?: string | null;
|
|
@@ -37,7 +37,7 @@ export type OrganisationSummary = {
|
|
|
37
37
|
organisationId?: string | null;
|
|
38
38
|
createdAtUTC?: string | null;
|
|
39
39
|
} | null;
|
|
40
|
-
ownerContact
|
|
40
|
+
ownerContact: {
|
|
41
41
|
id?: string;
|
|
42
42
|
email?: string;
|
|
43
43
|
familyName?: string;
|
|
@@ -55,11 +55,11 @@ export type OrganisationSummary = {
|
|
|
55
55
|
name: string;
|
|
56
56
|
email: string;
|
|
57
57
|
}>;
|
|
58
|
-
modules
|
|
58
|
+
modules: Array<{
|
|
59
59
|
id: string;
|
|
60
60
|
name?: string | null;
|
|
61
61
|
}>;
|
|
62
|
-
vetted
|
|
62
|
+
vetted: boolean;
|
|
63
63
|
rejected?: boolean;
|
|
64
64
|
isMerchant?: boolean;
|
|
65
65
|
assurance?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type SearchResultsOrganisationDetailSchema = {
|
|
2
2
|
docs?: Array<{
|
|
3
|
-
id
|
|
4
|
-
location
|
|
3
|
+
id: string;
|
|
4
|
+
location: {
|
|
5
5
|
what3words: string | null;
|
|
6
6
|
address: {
|
|
7
7
|
name?: string | null;
|
|
@@ -20,7 +20,7 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
20
20
|
lon: number;
|
|
21
21
|
} | null;
|
|
22
22
|
} | null;
|
|
23
|
-
company
|
|
23
|
+
company: {
|
|
24
24
|
assurance?: {
|
|
25
25
|
id: string | null;
|
|
26
26
|
key?: string | null;
|
|
@@ -40,9 +40,9 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
40
40
|
} | null;
|
|
41
41
|
};
|
|
42
42
|
companyNumber?: string | null;
|
|
43
|
-
countryISO
|
|
44
|
-
name
|
|
45
|
-
ownerContact
|
|
43
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
+
name: string;
|
|
45
|
+
ownerContact: {
|
|
46
46
|
id?: string;
|
|
47
47
|
email?: string;
|
|
48
48
|
phone?: {
|
|
@@ -58,9 +58,9 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
58
58
|
name: string;
|
|
59
59
|
email: string;
|
|
60
60
|
}>;
|
|
61
|
-
status
|
|
61
|
+
status: 'active' | 'pending' | 'suspended';
|
|
62
62
|
statusMessage?: string;
|
|
63
|
-
businessUnits
|
|
63
|
+
businessUnits: Array<{
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
type?: string;
|
|
@@ -68,14 +68,14 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
68
68
|
region: string | null;
|
|
69
69
|
tags: Array<string>;
|
|
70
70
|
}>;
|
|
71
|
-
modules
|
|
71
|
+
modules: Array<{
|
|
72
72
|
id: string;
|
|
73
73
|
name?: string | null;
|
|
74
74
|
}>;
|
|
75
|
-
vetted
|
|
75
|
+
vetted: boolean;
|
|
76
76
|
rejected?: boolean;
|
|
77
77
|
isMerchant?: boolean;
|
|
78
|
-
createdAtUTC
|
|
78
|
+
createdAtUTC: string;
|
|
79
79
|
advancePay?: {
|
|
80
80
|
accountName: string;
|
|
81
81
|
sortCode: string;
|
|
@@ -108,8 +108,8 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
108
108
|
terms?: Array<{
|
|
109
109
|
name?: string;
|
|
110
110
|
url?: string;
|
|
111
|
-
hits?:
|
|
112
|
-
selected?:
|
|
111
|
+
hits?: number;
|
|
112
|
+
selected?: boolean;
|
|
113
113
|
id?: string;
|
|
114
114
|
state?: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
115
115
|
aggregations?: Record<string, {
|
|
@@ -97,8 +97,8 @@ export type SearchResultsUserDetailSchema = {
|
|
|
97
97
|
terms?: Array<{
|
|
98
98
|
name?: string;
|
|
99
99
|
url?: string;
|
|
100
|
-
hits?:
|
|
101
|
-
selected?:
|
|
100
|
+
hits?: number;
|
|
101
|
+
selected?: boolean;
|
|
102
102
|
id?: string;
|
|
103
103
|
state?: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
104
104
|
aggregations?: Record<string, {
|
package/models/UserProfile.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type UserProfile = {
|
|
2
2
|
organisation: {
|
|
3
|
-
id
|
|
4
|
-
location
|
|
3
|
+
id: string;
|
|
4
|
+
location: {
|
|
5
5
|
what3words: string | null;
|
|
6
6
|
address: {
|
|
7
7
|
name?: string | null;
|
|
@@ -20,7 +20,7 @@ export type UserProfile = {
|
|
|
20
20
|
lon: number;
|
|
21
21
|
} | null;
|
|
22
22
|
} | null;
|
|
23
|
-
company
|
|
23
|
+
company: {
|
|
24
24
|
assurance?: {
|
|
25
25
|
id: string | null;
|
|
26
26
|
key?: string | null;
|
|
@@ -40,9 +40,9 @@ export type UserProfile = {
|
|
|
40
40
|
} | null;
|
|
41
41
|
};
|
|
42
42
|
companyNumber?: string | null;
|
|
43
|
-
countryISO
|
|
44
|
-
name
|
|
45
|
-
ownerContact
|
|
43
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
+
name: string;
|
|
45
|
+
ownerContact: {
|
|
46
46
|
id?: string;
|
|
47
47
|
email?: string;
|
|
48
48
|
phone?: {
|
|
@@ -58,9 +58,9 @@ export type UserProfile = {
|
|
|
58
58
|
name: string;
|
|
59
59
|
email: string;
|
|
60
60
|
}>;
|
|
61
|
-
status
|
|
61
|
+
status: 'active' | 'pending' | 'suspended';
|
|
62
62
|
statusMessage?: string;
|
|
63
|
-
businessUnits
|
|
63
|
+
businessUnits: Array<{
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
type?: string;
|
|
@@ -68,14 +68,14 @@ export type UserProfile = {
|
|
|
68
68
|
region: string | null;
|
|
69
69
|
tags: Array<string>;
|
|
70
70
|
}>;
|
|
71
|
-
modules
|
|
71
|
+
modules: Array<{
|
|
72
72
|
id: string;
|
|
73
73
|
name?: string | null;
|
|
74
74
|
}>;
|
|
75
|
-
vetted
|
|
75
|
+
vetted: boolean;
|
|
76
76
|
rejected?: boolean;
|
|
77
77
|
isMerchant?: boolean;
|
|
78
|
-
createdAtUTC
|
|
78
|
+
createdAtUTC: string;
|
|
79
79
|
advancePay?: {
|
|
80
80
|
accountName: string;
|
|
81
81
|
sortCode: string;
|