masterypath-sdk 0.0.13 → 0.1.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/MasterypathSDK.d.ts +8 -8
- package/dist/MasterypathSDK.js +8 -8
- package/dist/cli/cli.d.ts +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands/chat.d.ts.map +1 -1
- package/dist/cli/commands/chat.js +10 -5
- package/dist/cli/commands/chat.js.map +1 -1
- package/dist/cli/commands/organizations.d.ts.map +1 -1
- package/dist/cli/commands/organizations.js +9 -70
- package/dist/cli/commands/organizations.js.map +1 -1
- package/dist/cli/commands/uploads.d.ts +2 -2
- package/dist/cli/commands/uploads.d.ts.map +1 -1
- package/dist/cli/commands/uploads.js +8 -8
- package/dist/cli/commands/uploads.js.map +1 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +15 -13
- package/dist/cli/output.js.map +1 -1
- package/dist/domains/chat/ChatClient.d.ts +8 -8
- package/dist/domains/chat/ChatClient.d.ts.map +1 -1
- package/dist/domains/chat/ChatClient.js +24 -16
- package/dist/domains/chat/ChatClient.js.map +1 -1
- package/dist/domains/chat/types.d.ts +6 -0
- package/dist/domains/chat/types.d.ts.map +1 -1
- package/dist/domains/containers/ContainersClient.d.ts +187 -63
- package/dist/domains/containers/ContainersClient.js +542 -376
- package/dist/domains/index.d.ts +9 -9
- package/dist/domains/index.d.ts.map +1 -1
- package/dist/domains/index.js +5 -5
- package/dist/domains/listings/ListingsClient.d.ts +35 -12
- package/dist/domains/listings/ListingsClient.js +100 -84
- package/dist/domains/merchants/MerchantsClient.d.ts +124 -31
- package/dist/domains/merchants/MerchantsClient.js +420 -303
- package/dist/domains/mindmaps/MindmapsClient.d.ts +6 -6
- package/dist/domains/mindmaps/MindmapsClient.d.ts.map +1 -1
- package/dist/domains/mindmaps/MindmapsClient.js +12 -13
- package/dist/domains/mindmaps/MindmapsClient.js.map +1 -1
- package/dist/domains/mindmaps/types.d.ts.map +1 -1
- package/dist/domains/orders/OrdersClient.d.ts +327 -94
- package/dist/domains/orders/OrdersClient.js +934 -662
- package/dist/domains/orders/types.d.ts +45 -36
- package/dist/domains/orders/types.js +1 -1
- package/dist/domains/organizations/OrganizationsClient.d.ts +8 -5
- package/dist/domains/organizations/OrganizationsClient.d.ts.map +1 -1
- package/dist/domains/organizations/OrganizationsClient.js +21 -30
- package/dist/domains/organizations/OrganizationsClient.js.map +1 -1
- package/dist/domains/plants/PlantsClient.d.ts +43 -28
- package/dist/domains/plants/PlantsClient.js +51 -47
- package/dist/domains/products/ProductsClient.d.ts +34 -12
- package/dist/domains/products/ProductsClient.js +94 -83
- package/dist/domains/public-api/PublicApiClient.d.ts +22 -0
- package/dist/domains/public-api/PublicApiClient.d.ts.map +1 -1
- package/dist/domains/public-api/PublicApiClient.js +51 -0
- package/dist/domains/public-api/PublicApiClient.js.map +1 -1
- package/dist/domains/uploads/UploadsClient.d.ts.map +1 -1
- package/dist/domains/uploads/UploadsClient.js +1 -3
- package/dist/domains/uploads/UploadsClient.js.map +1 -1
- package/dist/domains/usdazones/UsdazonesClient.d.ts +6 -6
- package/dist/domains/usdazones/UsdazonesClient.js +15 -15
- package/dist/domains/users/UsersClient.d.ts +4 -4
- package/dist/domains/users/UsersClient.d.ts.map +1 -1
- package/dist/domains/users/UsersClient.js +24 -22
- package/dist/domains/users/UsersClient.js.map +1 -1
- package/dist/generated/graphql.d.ts +1172 -1079
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +5622 -84
- package/dist/generated/graphql.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/shared/fulfillmentWindows.js +4 -4
- package/dist/utils/errors.js +3 -3
- package/package.json +1 -1
package/dist/domains/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { UsersClient } from
|
|
2
|
-
export { OrganizationsClient } from
|
|
3
|
-
export { UploadsClient } from
|
|
4
|
-
export { ChatClient } from
|
|
5
|
-
export { MindmapsClient } from
|
|
6
|
-
export type { User, CreateUserInput } from
|
|
7
|
-
export type { UploadPdfResponse, UploadMindmapImageResponse, UploadFlashcardAudioResponse, ConceptResult, TocConcept, TocStructure, HierarchicalTocGenerationResult, TextToTocConceptsResponse } from
|
|
8
|
-
export type { ContextMessage, ContextSession, SaveContextMessageInput, CreateContextInput, UpdateContextInput, } from
|
|
9
|
-
export type { Mindmap, CreateMindmapInput, UpdateMindmapInput, Post, Flashcard, } from
|
|
1
|
+
export { UsersClient } from "./users/UsersClient.js";
|
|
2
|
+
export { OrganizationsClient } from "./organizations/OrganizationsClient.js";
|
|
3
|
+
export { UploadsClient } from "./uploads/UploadsClient.js";
|
|
4
|
+
export { ChatClient } from "./chat/ChatClient.js";
|
|
5
|
+
export { MindmapsClient } from "./mindmaps/MindmapsClient.js";
|
|
6
|
+
export type { User, CreateUserInput } from "./users/types.js";
|
|
7
|
+
export type { UploadPdfResponse, UploadMindmapImageResponse, UploadFlashcardAudioResponse, ConceptResult, TocConcept, TocStructure, HierarchicalTocGenerationResult, TextToTocConceptsResponse, } from "./uploads/UploadsClient.js";
|
|
8
|
+
export type { ContextMessage, ContextSession, SaveContextMessageInput, CreateContextInput, UpdateContextInput, } from "./chat/types.js";
|
|
9
|
+
export type { Mindmap, CreateMindmapInput, UpdateMindmapInput, Post, Flashcard, CardMetaData, CardsDue, } from "./mindmaps/types.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC9D,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC9D,YAAY,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EACb,UAAU,EACV,YAAY,EACZ,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,QAAQ,GACT,MAAM,qBAAqB,CAAC"}
|
package/dist/domains/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { UsersClient } from
|
|
2
|
-
export { OrganizationsClient } from
|
|
3
|
-
export { UploadsClient } from
|
|
4
|
-
export { ChatClient } from
|
|
5
|
-
export { MindmapsClient } from
|
|
1
|
+
export { UsersClient } from "./users/UsersClient.js";
|
|
2
|
+
export { OrganizationsClient } from "./organizations/OrganizationsClient.js";
|
|
3
|
+
export { UploadsClient } from "./uploads/UploadsClient.js";
|
|
4
|
+
export { ChatClient } from "./chat/ChatClient.js";
|
|
5
|
+
export { MindmapsClient } from "./mindmaps/MindmapsClient.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,37 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import {
|
|
1
|
+
import { HttpClient } from "../../clients/HttpClient";
|
|
2
|
+
import {
|
|
3
|
+
GetListingByIdQuery,
|
|
4
|
+
GetListingsByMerchantIdQuery,
|
|
5
|
+
GetListingsByMerchantHandleQuery,
|
|
6
|
+
SearchListingQuery,
|
|
7
|
+
CreateListingMutation,
|
|
8
|
+
UpdateListingMutation,
|
|
9
|
+
CreateListingInput,
|
|
10
|
+
UpdateListingInput,
|
|
11
|
+
SearchListingInput,
|
|
12
|
+
} from "../../generated/graphql";
|
|
3
13
|
export declare class ListingsClient {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
private readonly httpClient;
|
|
15
|
+
constructor(httpClient: HttpClient);
|
|
16
|
+
getListingById(id: string): Promise<GetListingByIdQuery["getListingById"]>;
|
|
17
|
+
getListingsByMerchantId(
|
|
18
|
+
merchantId: string,
|
|
19
|
+
page?: number,
|
|
20
|
+
): Promise<GetListingsByMerchantIdQuery["getListingsByMerchantId"]>;
|
|
21
|
+
getListingsByMerchantHandle(
|
|
22
|
+
merchantHandle: string,
|
|
23
|
+
page?: number,
|
|
24
|
+
): Promise<GetListingsByMerchantHandleQuery["getListingsByMerchantHandle"]>;
|
|
25
|
+
searchListing(
|
|
26
|
+
input: SearchListingInput,
|
|
27
|
+
): Promise<SearchListingQuery["searchListing"]>;
|
|
28
|
+
createListing(
|
|
29
|
+
input: CreateListingInput,
|
|
30
|
+
merchantId: string,
|
|
31
|
+
): Promise<CreateListingMutation["createListing"]>;
|
|
32
|
+
updateListing(
|
|
33
|
+
input: UpdateListingInput,
|
|
34
|
+
): Promise<UpdateListingMutation["updateListing"]>;
|
|
35
|
+
deleteListingPhoto(listingId: string, filename: string): Promise<boolean>;
|
|
13
36
|
}
|
|
14
|
-
//# sourceMappingURL=ListingsClient.d.ts.map
|
|
37
|
+
//# sourceMappingURL=ListingsClient.d.ts.map
|
|
@@ -1,92 +1,108 @@
|
|
|
1
|
-
import { print } from
|
|
2
|
-
import {
|
|
1
|
+
import { print } from "graphql";
|
|
2
|
+
import {
|
|
3
|
+
GetListingByIdDocument,
|
|
4
|
+
GetListingsByMerchantIdDocument,
|
|
5
|
+
GetListingsByMerchantHandleDocument,
|
|
6
|
+
SearchListingDocument,
|
|
7
|
+
CreateListingDocument,
|
|
8
|
+
UpdateListingDocument,
|
|
9
|
+
DeleteListingPhotoDocument,
|
|
10
|
+
} from "../../generated/graphql";
|
|
3
11
|
export class ListingsClient {
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
constructor(httpClient) {
|
|
13
|
+
this.httpClient = httpClient;
|
|
14
|
+
}
|
|
15
|
+
async getListingById(id) {
|
|
16
|
+
const response = await this.httpClient.request("/graphql-listings", {
|
|
17
|
+
query: print(GetListingByIdDocument),
|
|
18
|
+
variables: {
|
|
19
|
+
id,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
return response.data?.getListingById ?? null;
|
|
23
|
+
}
|
|
24
|
+
async getListingsByMerchantId(merchantId, page = 1) {
|
|
25
|
+
const response = await this.httpClient.request("/graphql-listings", {
|
|
26
|
+
query: print(GetListingsByMerchantIdDocument),
|
|
27
|
+
variables: {
|
|
28
|
+
merchantId,
|
|
29
|
+
page,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
if (!response.data?.getListingsByMerchantId) {
|
|
33
|
+
throw new Error(
|
|
34
|
+
"Failed to get listings by merchant id: No data returned",
|
|
35
|
+
);
|
|
6
36
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
37
|
+
return response.data.getListingsByMerchantId;
|
|
38
|
+
}
|
|
39
|
+
async getListingsByMerchantHandle(merchantHandle, page = 1) {
|
|
40
|
+
const response = await this.httpClient.request("/graphql-listings", {
|
|
41
|
+
query: print(GetListingsByMerchantHandleDocument),
|
|
42
|
+
variables: {
|
|
43
|
+
merchantHandle,
|
|
44
|
+
page,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
if (!response.data?.getListingsByMerchantHandle) {
|
|
48
|
+
throw new Error(
|
|
49
|
+
"Failed to get listings by merchant handle: No data returned",
|
|
50
|
+
);
|
|
15
51
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return response.data.getListingsByMerchantId;
|
|
52
|
+
return response.data.getListingsByMerchantHandle;
|
|
53
|
+
}
|
|
54
|
+
async searchListing(input) {
|
|
55
|
+
const response = await this.httpClient.request("/graphql-listings", {
|
|
56
|
+
query: print(SearchListingDocument),
|
|
57
|
+
variables: {
|
|
58
|
+
input,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
if (!response.data?.searchListing) {
|
|
62
|
+
throw new Error("Failed to search listings: No data returned");
|
|
28
63
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
64
|
+
return response.data.searchListing;
|
|
65
|
+
}
|
|
66
|
+
async createListing(input, merchantId) {
|
|
67
|
+
const response = await this.httpClient.request(
|
|
68
|
+
"/graphql-listings",
|
|
69
|
+
{
|
|
70
|
+
query: print(CreateListingDocument),
|
|
71
|
+
variables: {
|
|
72
|
+
input,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
merchantId,
|
|
76
|
+
);
|
|
77
|
+
if (!response.data?.createListing) {
|
|
78
|
+
throw new Error("Failed to create listing: No data returned");
|
|
41
79
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
80
|
+
return response.data.createListing;
|
|
81
|
+
}
|
|
82
|
+
async updateListing(input) {
|
|
83
|
+
const response = await this.httpClient.request("/graphql-listings", {
|
|
84
|
+
query: print(UpdateListingDocument),
|
|
85
|
+
variables: {
|
|
86
|
+
input,
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
if (!response.data?.updateListing) {
|
|
90
|
+
throw new Error("Failed to update listing: No data returned");
|
|
53
91
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
async updateListing(input) {
|
|
67
|
-
const response = await this.httpClient.request('/graphql-listings', {
|
|
68
|
-
query: print(UpdateListingDocument),
|
|
69
|
-
variables: {
|
|
70
|
-
input,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
if (!response.data?.updateListing) {
|
|
74
|
-
throw new Error('Failed to update listing: No data returned');
|
|
75
|
-
}
|
|
76
|
-
return response.data.updateListing;
|
|
77
|
-
}
|
|
78
|
-
async deleteListingPhoto(listingId, filename) {
|
|
79
|
-
const response = await this.httpClient.request('/graphql-listings', {
|
|
80
|
-
query: print(DeleteListingPhotoDocument),
|
|
81
|
-
variables: {
|
|
82
|
-
listingId,
|
|
83
|
-
filename,
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
if (response.data?.deleteListingPhoto === undefined) {
|
|
87
|
-
throw new Error('Failed to delete listing photo: No data returned');
|
|
88
|
-
}
|
|
89
|
-
return response.data.deleteListingPhoto;
|
|
92
|
+
return response.data.updateListing;
|
|
93
|
+
}
|
|
94
|
+
async deleteListingPhoto(listingId, filename) {
|
|
95
|
+
const response = await this.httpClient.request("/graphql-listings", {
|
|
96
|
+
query: print(DeleteListingPhotoDocument),
|
|
97
|
+
variables: {
|
|
98
|
+
listingId,
|
|
99
|
+
filename,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
if (response.data?.deleteListingPhoto === undefined) {
|
|
103
|
+
throw new Error("Failed to delete listing photo: No data returned");
|
|
90
104
|
}
|
|
105
|
+
return response.data.deleteListingPhoto;
|
|
106
|
+
}
|
|
91
107
|
}
|
|
92
|
-
//# sourceMappingURL=ListingsClient.js.map
|
|
108
|
+
//# sourceMappingURL=ListingsClient.js.map
|
|
@@ -1,33 +1,126 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import {
|
|
1
|
+
import { HttpClient } from "../../clients/HttpClient";
|
|
2
|
+
import {
|
|
3
|
+
GetOnboardingQuery,
|
|
4
|
+
BeginStripeOnboardingMutation,
|
|
5
|
+
VerifyOnboardingCompletedMutation,
|
|
6
|
+
CreateMerchantMutation,
|
|
7
|
+
GetMerchantQuery,
|
|
8
|
+
GetMerchantByIdQuery,
|
|
9
|
+
GetMerchantByHandleQuery,
|
|
10
|
+
UpdateMerchantMutation,
|
|
11
|
+
GetMerchantLocationsQuery,
|
|
12
|
+
CreateLocationMutation,
|
|
13
|
+
UpdateLocationMutation,
|
|
14
|
+
RestoreLocationMutation,
|
|
15
|
+
GetLocationTaxJurisdictionsQuery,
|
|
16
|
+
CreateLocationTaxJurisdictionMutation,
|
|
17
|
+
UpdateLocationTaxJurisdictionMutation,
|
|
18
|
+
CreateMerchantInput,
|
|
19
|
+
UpdateMerchantInput,
|
|
20
|
+
CreateLocationInput,
|
|
21
|
+
UpdateLocationInput,
|
|
22
|
+
CreateLocationTaxJurisdictionInput,
|
|
23
|
+
UpdateLocationTaxJurisdictionInput,
|
|
24
|
+
InviteUserToMerchantMutation,
|
|
25
|
+
InviteUserToMerchantInput,
|
|
26
|
+
AcceptInvitationMutation,
|
|
27
|
+
ListRolesQuery,
|
|
28
|
+
ListMerchantUsersQuery,
|
|
29
|
+
ListLocationUsersQuery,
|
|
30
|
+
AssignRolesToUserMutation,
|
|
31
|
+
SetUserLocationsMutation,
|
|
32
|
+
} from "../../generated/graphql";
|
|
3
33
|
export declare class MerchantsClient {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
private readonly httpClient;
|
|
35
|
+
constructor(httpClient: HttpClient);
|
|
36
|
+
getOnboarding(
|
|
37
|
+
merchantId?: string,
|
|
38
|
+
): Promise<GetOnboardingQuery["getOnboarding"]>;
|
|
39
|
+
beginStripeOnboarding(
|
|
40
|
+
merchantId?: string,
|
|
41
|
+
): Promise<BeginStripeOnboardingMutation["beginStripeOnboarding"]>;
|
|
42
|
+
verifyOnboardingCompleted(
|
|
43
|
+
merchantId: string,
|
|
44
|
+
): Promise<VerifyOnboardingCompletedMutation["verifyOnboardingCompleted"]>;
|
|
45
|
+
createMerchant(
|
|
46
|
+
input: CreateMerchantInput,
|
|
47
|
+
): Promise<CreateMerchantMutation["createMerchant"]>;
|
|
48
|
+
getMerchant(merchantId: string): Promise<GetMerchantQuery["getMerchant"]>;
|
|
49
|
+
getMerchantById(
|
|
50
|
+
merchantId: string,
|
|
51
|
+
): Promise<GetMerchantByIdQuery["getMerchantById"]>;
|
|
52
|
+
getMerchantByHandle(
|
|
53
|
+
handle: string,
|
|
54
|
+
): Promise<GetMerchantByHandleQuery["getMerchantByHandle"]>;
|
|
55
|
+
updateMerchant(
|
|
56
|
+
input: UpdateMerchantInput,
|
|
57
|
+
merchantId: string,
|
|
58
|
+
): Promise<UpdateMerchantMutation["updateMerchant"]>;
|
|
59
|
+
getMerchantLocations(
|
|
60
|
+
merchantId?: string,
|
|
61
|
+
includeDeleted?: boolean,
|
|
62
|
+
): Promise<GetMerchantLocationsQuery["getMerchantLocations"]>;
|
|
63
|
+
createLocation(
|
|
64
|
+
input: CreateLocationInput,
|
|
65
|
+
merchantId?: string,
|
|
66
|
+
): Promise<CreateLocationMutation["createLocation"]>;
|
|
67
|
+
updateLocation(
|
|
68
|
+
id: string,
|
|
69
|
+
input: UpdateLocationInput,
|
|
70
|
+
merchantId: string,
|
|
71
|
+
): Promise<UpdateLocationMutation["updateLocation"]>;
|
|
72
|
+
deleteLocation(id: string, merchantId: string): Promise<boolean>;
|
|
73
|
+
restoreLocation(
|
|
74
|
+
id: string,
|
|
75
|
+
merchantId: string,
|
|
76
|
+
): Promise<RestoreLocationMutation["restoreLocation"]>;
|
|
77
|
+
getLocationTaxJurisdictions(
|
|
78
|
+
locationId: string,
|
|
79
|
+
): Promise<GetLocationTaxJurisdictionsQuery["getLocationTaxJurisdictions"]>;
|
|
80
|
+
createLocationTaxJurisdiction(
|
|
81
|
+
input: CreateLocationTaxJurisdictionInput,
|
|
82
|
+
): Promise<
|
|
83
|
+
CreateLocationTaxJurisdictionMutation["createLocationTaxJurisdiction"]
|
|
84
|
+
>;
|
|
85
|
+
updateLocationTaxJurisdiction(
|
|
86
|
+
id: string,
|
|
87
|
+
input: UpdateLocationTaxJurisdictionInput,
|
|
88
|
+
merchantId: string,
|
|
89
|
+
): Promise<
|
|
90
|
+
UpdateLocationTaxJurisdictionMutation["updateLocationTaxJurisdiction"]
|
|
91
|
+
>;
|
|
92
|
+
deleteLocationTaxJurisdiction(
|
|
93
|
+
id: string,
|
|
94
|
+
merchantId: string,
|
|
95
|
+
): Promise<boolean>;
|
|
96
|
+
inviteUserToMerchant(
|
|
97
|
+
input: InviteUserToMerchantInput,
|
|
98
|
+
merchantId: string,
|
|
99
|
+
): Promise<InviteUserToMerchantMutation["inviteUserToMerchant"]>;
|
|
100
|
+
listMerchantUsers(
|
|
101
|
+
merchantId: string,
|
|
102
|
+
): Promise<ListMerchantUsersQuery["listMerchantUsers"]>;
|
|
103
|
+
listLocationUsers(
|
|
104
|
+
locationId: string,
|
|
105
|
+
merchantId: string,
|
|
106
|
+
): Promise<ListLocationUsersQuery["listLocationUsers"]>;
|
|
107
|
+
listRoles(): Promise<ListRolesQuery["listRoles"]>;
|
|
108
|
+
acceptInvitation(
|
|
109
|
+
email: string,
|
|
110
|
+
merchantId: string,
|
|
111
|
+
): Promise<AcceptInvitationMutation["acceptInvitation"]>;
|
|
112
|
+
deleteInvitation(email: string, merchantId: string): Promise<boolean>;
|
|
113
|
+
removeUserFromMerchant(userId: string, merchantId: string): Promise<boolean>;
|
|
114
|
+
assignRolesToUser(
|
|
115
|
+
userId: string,
|
|
116
|
+
merchantId: string,
|
|
117
|
+
roleNames: string[],
|
|
118
|
+
locationIds?: string[],
|
|
119
|
+
): Promise<AssignRolesToUserMutation["assignRolesToUser"]>;
|
|
120
|
+
setUserLocations(
|
|
121
|
+
userId: string,
|
|
122
|
+
merchantId: string,
|
|
123
|
+
locationIds: string[],
|
|
124
|
+
): Promise<SetUserLocationsMutation["setUserLocations"]>;
|
|
32
125
|
}
|
|
33
|
-
//# sourceMappingURL=MerchantsClient.d.ts.map
|
|
126
|
+
//# sourceMappingURL=MerchantsClient.d.ts.map
|