@truetms/truetms-node 0.2.0 → 0.2.2
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/dist/src/graphql/generated.js +238 -3
- package/dist/src/graphql/generated.js.map +1 -1
- package/dist/src/sdk/auth.js +1 -1
- package/dist/src/sdk/auth.js.map +1 -1
- package/dist/src/sdk/businessEntities.js +20 -0
- package/dist/src/sdk/businessEntities.js.map +1 -0
- package/dist/src/sdk/index.js +2 -0
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
- package/src/graphql/business-entities.graphql +191 -0
- package/src/graphql/generated.ts +617 -45
- package/src/graphql/invoices.graphql +2 -0
- package/src/sdk/auth.ts +1 -1
- package/src/sdk/businessEntities.ts +29 -0
- package/src/sdk/index.ts +3 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
query getBusinessEntityList(
|
|
2
|
+
$search: String
|
|
3
|
+
$skip: Int
|
|
4
|
+
$take: Int
|
|
5
|
+
$businessEntityTypes: [BusinessEntityType!]
|
|
6
|
+
) {
|
|
7
|
+
businessEntities(
|
|
8
|
+
search: $search
|
|
9
|
+
skip: $skip
|
|
10
|
+
take: $take
|
|
11
|
+
businessEntityTypes: $businessEntityTypes
|
|
12
|
+
) {
|
|
13
|
+
data {
|
|
14
|
+
_id
|
|
15
|
+
address {
|
|
16
|
+
label
|
|
17
|
+
}
|
|
18
|
+
code
|
|
19
|
+
mcNumber
|
|
20
|
+
contact {
|
|
21
|
+
firstname
|
|
22
|
+
lastname
|
|
23
|
+
email
|
|
24
|
+
phoneNumber
|
|
25
|
+
}
|
|
26
|
+
name
|
|
27
|
+
type
|
|
28
|
+
additionalTypes
|
|
29
|
+
}
|
|
30
|
+
count
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
query getBusinessEntityDetails($id: String!) {
|
|
35
|
+
businessEntityById(id: $id) {
|
|
36
|
+
_id
|
|
37
|
+
name
|
|
38
|
+
code
|
|
39
|
+
mcNumber
|
|
40
|
+
additionalTypes
|
|
41
|
+
address {
|
|
42
|
+
label
|
|
43
|
+
coordinates {
|
|
44
|
+
latitude
|
|
45
|
+
longitude
|
|
46
|
+
}
|
|
47
|
+
city
|
|
48
|
+
country
|
|
49
|
+
googlePlaceId
|
|
50
|
+
line1
|
|
51
|
+
line2
|
|
52
|
+
postalCode
|
|
53
|
+
state
|
|
54
|
+
}
|
|
55
|
+
addressTimezone
|
|
56
|
+
billingAddress {
|
|
57
|
+
city
|
|
58
|
+
country
|
|
59
|
+
googlePlaceId
|
|
60
|
+
line1
|
|
61
|
+
line2
|
|
62
|
+
postalCode
|
|
63
|
+
state
|
|
64
|
+
}
|
|
65
|
+
billingEmail
|
|
66
|
+
billingTermsDay
|
|
67
|
+
remitAddress {
|
|
68
|
+
city
|
|
69
|
+
country
|
|
70
|
+
googlePlaceId
|
|
71
|
+
line1
|
|
72
|
+
line2
|
|
73
|
+
postalCode
|
|
74
|
+
state
|
|
75
|
+
}
|
|
76
|
+
remitEmail
|
|
77
|
+
contact {
|
|
78
|
+
email
|
|
79
|
+
firstname
|
|
80
|
+
lastname
|
|
81
|
+
phoneNumber
|
|
82
|
+
}
|
|
83
|
+
openingSchedules {
|
|
84
|
+
openingTime
|
|
85
|
+
closingTime
|
|
86
|
+
days
|
|
87
|
+
}
|
|
88
|
+
additionalContacts {
|
|
89
|
+
firstname
|
|
90
|
+
lastname
|
|
91
|
+
email
|
|
92
|
+
phoneNumber
|
|
93
|
+
}
|
|
94
|
+
goodInventoryItems {
|
|
95
|
+
_id
|
|
96
|
+
label
|
|
97
|
+
weight
|
|
98
|
+
}
|
|
99
|
+
type
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
query getBusinessEntityDetailsByExternalId($externalId: String!) {
|
|
104
|
+
businessEntityByExternalId(externalId: $externalId) {
|
|
105
|
+
_id
|
|
106
|
+
name
|
|
107
|
+
code
|
|
108
|
+
mcNumber
|
|
109
|
+
additionalTypes
|
|
110
|
+
address {
|
|
111
|
+
label
|
|
112
|
+
coordinates {
|
|
113
|
+
latitude
|
|
114
|
+
longitude
|
|
115
|
+
}
|
|
116
|
+
city
|
|
117
|
+
country
|
|
118
|
+
googlePlaceId
|
|
119
|
+
line1
|
|
120
|
+
line2
|
|
121
|
+
postalCode
|
|
122
|
+
state
|
|
123
|
+
}
|
|
124
|
+
addressTimezone
|
|
125
|
+
billingAddress {
|
|
126
|
+
city
|
|
127
|
+
country
|
|
128
|
+
googlePlaceId
|
|
129
|
+
line1
|
|
130
|
+
line2
|
|
131
|
+
postalCode
|
|
132
|
+
state
|
|
133
|
+
}
|
|
134
|
+
billingEmail
|
|
135
|
+
billingTermsDay
|
|
136
|
+
remitAddress {
|
|
137
|
+
city
|
|
138
|
+
country
|
|
139
|
+
googlePlaceId
|
|
140
|
+
line1
|
|
141
|
+
line2
|
|
142
|
+
postalCode
|
|
143
|
+
state
|
|
144
|
+
}
|
|
145
|
+
remitEmail
|
|
146
|
+
contact {
|
|
147
|
+
email
|
|
148
|
+
firstname
|
|
149
|
+
lastname
|
|
150
|
+
phoneNumber
|
|
151
|
+
}
|
|
152
|
+
openingSchedules {
|
|
153
|
+
openingTime
|
|
154
|
+
closingTime
|
|
155
|
+
days
|
|
156
|
+
}
|
|
157
|
+
additionalContacts {
|
|
158
|
+
firstname
|
|
159
|
+
lastname
|
|
160
|
+
email
|
|
161
|
+
phoneNumber
|
|
162
|
+
}
|
|
163
|
+
goodInventoryItems {
|
|
164
|
+
_id
|
|
165
|
+
label
|
|
166
|
+
weight
|
|
167
|
+
}
|
|
168
|
+
type
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
mutation addBusinessEntity(
|
|
173
|
+
$newBusinessEntityData: NewBusinessEntityInputWithType!
|
|
174
|
+
) {
|
|
175
|
+
addBusinessEntity(newBusinessEntityData: $newBusinessEntityData) {
|
|
176
|
+
_id
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
mutation editBusinessEntity(
|
|
181
|
+
$id: String!
|
|
182
|
+
$editBusinessEntityData: BusinessEntityUpdateInput!
|
|
183
|
+
) {
|
|
184
|
+
editBusinessEntity(id: $id, editBusinessEntityData: $editBusinessEntityData) {
|
|
185
|
+
_id
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
mutation deleteBusinessEntity($id: String!) {
|
|
190
|
+
deleteBusinessEntity(id: $id)
|
|
191
|
+
}
|