@vendure/core 3.2.0 → 3.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/LICENSE.md +42 -42
- package/README.md +11 -11
- package/dist/api/config/generate-error-code-enum.js +3 -3
- package/dist/api/config/generate-permissions.js +29 -29
- package/dist/api/config/graphql-custom-fields.js +158 -158
- package/dist/api/schema/admin-api/administrator.api.graphql +47 -47
- package/dist/api/schema/admin-api/administrator.type.graphql +14 -14
- package/dist/api/schema/admin-api/asset.api.graphql +68 -68
- package/dist/api/schema/admin-api/auth.api.graphql +22 -22
- package/dist/api/schema/admin-api/channel.api.graphql +69 -69
- package/dist/api/schema/admin-api/collection-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/collection.api.graphql +94 -94
- package/dist/api/schema/admin-api/country.api.graphql +41 -41
- package/dist/api/schema/admin-api/customer-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/customer-group.api.graphql +37 -37
- package/dist/api/schema/admin-api/customer.api.graphql +63 -63
- package/dist/api/schema/admin-api/duplicate-entity.api.graphql +40 -40
- package/dist/api/schema/admin-api/facet-admin.type.graphql +3 -3
- package/dist/api/schema/admin-api/facet.api.graphql +100 -100
- package/dist/api/schema/admin-api/global-settings.api.graphql +26 -26
- package/dist/api/schema/admin-api/global-settings.type.graphql +28 -28
- package/dist/api/schema/admin-api/history-entry-admin.type.graphql +4 -4
- package/dist/api/schema/admin-api/import.api.graphql +3 -3
- package/dist/api/schema/admin-api/import.type.graphql +5 -5
- package/dist/api/schema/admin-api/job.api.graphql +63 -63
- package/dist/api/schema/admin-api/order-admin.type.graphql +37 -37
- package/dist/api/schema/admin-api/order.api.graphql +463 -463
- package/dist/api/schema/admin-api/payment-method.api.graphql +65 -65
- package/dist/api/schema/admin-api/payment.api.graphql +2 -2
- package/dist/api/schema/admin-api/product-admin.type.graphql +21 -21
- package/dist/api/schema/admin-api/product-option-group.api.graphql +58 -58
- package/dist/api/schema/admin-api/product-search-admin.type.graphql +5 -5
- package/dist/api/schema/admin-api/product-search.api.graphql +10 -10
- package/dist/api/schema/admin-api/product.api.graphql +225 -225
- package/dist/api/schema/admin-api/promotion.api.graphql +70 -70
- package/dist/api/schema/admin-api/province.api.graphql +37 -37
- package/dist/api/schema/admin-api/role.api.graphql +33 -33
- package/dist/api/schema/admin-api/seller.api.graphql +31 -31
- package/dist/api/schema/admin-api/shipping-method.api.graphql +91 -91
- package/dist/api/schema/admin-api/stock-level.type.graphql +9 -9
- package/dist/api/schema/admin-api/stock-location.api.graphql +51 -51
- package/dist/api/schema/admin-api/stock-location.type.graphql +7 -7
- package/dist/api/schema/admin-api/stock-movement.type.graphql +80 -80
- package/dist/api/schema/admin-api/tag.api.graphql +25 -25
- package/dist/api/schema/admin-api/tax-category.api.graphql +36 -36
- package/dist/api/schema/admin-api/tax-rate.api.graphql +37 -37
- package/dist/api/schema/admin-api/zone.api.graphql +42 -42
- package/dist/api/schema/common/address.type.graphql +16 -16
- package/dist/api/schema/common/asset.type.graphql +31 -31
- package/dist/api/schema/common/auth.type.graphql +12 -12
- package/dist/api/schema/common/channel.type.graphql +24 -24
- package/dist/api/schema/common/collection.type.graphql +40 -40
- package/dist/api/schema/common/common-enums.graphql +35 -35
- package/dist/api/schema/common/common-error-results.graphql +107 -107
- package/dist/api/schema/common/common-types.graphql +285 -285
- package/dist/api/schema/common/currency-code.graphql +322 -322
- package/dist/api/schema/common/custom-field-types.graphql +265 -265
- package/dist/api/schema/common/customer-group.type.graphql +10 -10
- package/dist/api/schema/common/customer.type.graphql +18 -18
- package/dist/api/schema/common/facet-value.type.graphql +19 -19
- package/dist/api/schema/common/facet.type.graphql +35 -35
- package/dist/api/schema/common/history-entry.type.graphql +43 -43
- package/dist/api/schema/common/language-code.graphql +325 -325
- package/dist/api/schema/common/order.type.graphql +257 -257
- package/dist/api/schema/common/payment-method.type.graphql +21 -21
- package/dist/api/schema/common/product-option-group.type.graphql +38 -38
- package/dist/api/schema/common/product-search.type.graphql +69 -69
- package/dist/api/schema/common/product.type.graphql +70 -70
- package/dist/api/schema/common/promotion.type.graphql +31 -31
- package/dist/api/schema/common/region.type.graphql +65 -65
- package/dist/api/schema/common/role.type.graphql +14 -14
- package/dist/api/schema/common/seller.type.graphql +6 -6
- package/dist/api/schema/common/shipping-method.type.graphql +27 -27
- package/dist/api/schema/common/tag.type.graphql +11 -11
- package/dist/api/schema/common/tax-category.type.graphql +7 -7
- package/dist/api/schema/common/tax-rate.type.graphql +16 -16
- package/dist/api/schema/common/user.type.graphql +17 -17
- package/dist/api/schema/common/zone.type.graphql +8 -8
- package/dist/api/schema/shop-api/shop-error-results.graphql +114 -114
- package/dist/api/schema/shop-api/shop.api.graphql +287 -287
- package/dist/config/auth/native-authentication-strategy.js +5 -5
- package/dist/i18n/messages/de.json +117 -117
- package/dist/i18n/messages/en.json +140 -140
- package/dist/i18n/messages/es.json +38 -38
- package/dist/i18n/messages/fr.json +138 -138
- package/dist/i18n/messages/pt_BR.json +99 -99
- package/dist/i18n/messages/pt_PT.json +118 -118
- package/dist/i18n/messages/ru.json +118 -118
- package/dist/i18n/messages/uk.json +118 -118
- package/dist/migrate.js +15 -15
- package/dist/plugin/default-search-plugin/api/api-extensions.js +8 -8
- package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +3 -3
- package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +5 -5
- package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
- package/package.json +4 -4
- package/cli/cli-utils.d.ts +0 -1
- package/cli/cli-utils.js +0 -8
- package/cli/cli-utils.js.map +0 -1
- package/cli/vendure-cli.d.ts +0 -2
- package/cli/vendure-cli.js +0 -119
- package/cli/vendure-cli.js.map +0 -1
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
administrators(options: AdministratorListOptions): AdministratorList!
|
|
3
|
-
administrator(id: ID!): Administrator
|
|
4
|
-
activeAdministrator: Administrator
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
type Mutation {
|
|
8
|
-
"Create a new Administrator"
|
|
9
|
-
createAdministrator(input: CreateAdministratorInput!): Administrator!
|
|
10
|
-
"Update an existing Administrator"
|
|
11
|
-
updateAdministrator(input: UpdateAdministratorInput!): Administrator!
|
|
12
|
-
"Update the active (currently logged-in) Administrator"
|
|
13
|
-
updateActiveAdministrator(input: UpdateActiveAdministratorInput!): Administrator!
|
|
14
|
-
"Delete an Administrator"
|
|
15
|
-
deleteAdministrator(id: ID!): DeletionResponse!
|
|
16
|
-
"Delete multiple Administrators"
|
|
17
|
-
deleteAdministrators(ids: [ID!]!): [DeletionResponse!]!
|
|
18
|
-
"Assign a Role to an Administrator"
|
|
19
|
-
assignRoleToAdministrator(administratorId: ID!, roleId: ID!): Administrator!
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
# generated by generateListOptions function
|
|
23
|
-
input AdministratorListOptions
|
|
24
|
-
|
|
25
|
-
input CreateAdministratorInput {
|
|
26
|
-
firstName: String!
|
|
27
|
-
lastName: String!
|
|
28
|
-
emailAddress: String!
|
|
29
|
-
password: String!
|
|
30
|
-
roleIds: [ID!]!
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
input UpdateAdministratorInput {
|
|
34
|
-
id: ID!
|
|
35
|
-
firstName: String
|
|
36
|
-
lastName: String
|
|
37
|
-
emailAddress: String
|
|
38
|
-
password: String
|
|
39
|
-
roleIds: [ID!]
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
input UpdateActiveAdministratorInput {
|
|
43
|
-
firstName: String
|
|
44
|
-
lastName: String
|
|
45
|
-
emailAddress: String
|
|
46
|
-
password: String
|
|
47
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
administrators(options: AdministratorListOptions): AdministratorList!
|
|
3
|
+
administrator(id: ID!): Administrator
|
|
4
|
+
activeAdministrator: Administrator
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type Mutation {
|
|
8
|
+
"Create a new Administrator"
|
|
9
|
+
createAdministrator(input: CreateAdministratorInput!): Administrator!
|
|
10
|
+
"Update an existing Administrator"
|
|
11
|
+
updateAdministrator(input: UpdateAdministratorInput!): Administrator!
|
|
12
|
+
"Update the active (currently logged-in) Administrator"
|
|
13
|
+
updateActiveAdministrator(input: UpdateActiveAdministratorInput!): Administrator!
|
|
14
|
+
"Delete an Administrator"
|
|
15
|
+
deleteAdministrator(id: ID!): DeletionResponse!
|
|
16
|
+
"Delete multiple Administrators"
|
|
17
|
+
deleteAdministrators(ids: [ID!]!): [DeletionResponse!]!
|
|
18
|
+
"Assign a Role to an Administrator"
|
|
19
|
+
assignRoleToAdministrator(administratorId: ID!, roleId: ID!): Administrator!
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
# generated by generateListOptions function
|
|
23
|
+
input AdministratorListOptions
|
|
24
|
+
|
|
25
|
+
input CreateAdministratorInput {
|
|
26
|
+
firstName: String!
|
|
27
|
+
lastName: String!
|
|
28
|
+
emailAddress: String!
|
|
29
|
+
password: String!
|
|
30
|
+
roleIds: [ID!]!
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input UpdateAdministratorInput {
|
|
34
|
+
id: ID!
|
|
35
|
+
firstName: String
|
|
36
|
+
lastName: String
|
|
37
|
+
emailAddress: String
|
|
38
|
+
password: String
|
|
39
|
+
roleIds: [ID!]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
input UpdateActiveAdministratorInput {
|
|
43
|
+
firstName: String
|
|
44
|
+
lastName: String
|
|
45
|
+
emailAddress: String
|
|
46
|
+
password: String
|
|
47
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
type Administrator implements Node {
|
|
2
|
-
id: ID!
|
|
3
|
-
createdAt: DateTime!
|
|
4
|
-
updatedAt: DateTime!
|
|
5
|
-
firstName: String!
|
|
6
|
-
lastName: String!
|
|
7
|
-
emailAddress: String!
|
|
8
|
-
user: User!
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type AdministratorList implements PaginatedList {
|
|
12
|
-
items: [Administrator!]!
|
|
13
|
-
totalItems: Int!
|
|
14
|
-
}
|
|
1
|
+
type Administrator implements Node {
|
|
2
|
+
id: ID!
|
|
3
|
+
createdAt: DateTime!
|
|
4
|
+
updatedAt: DateTime!
|
|
5
|
+
firstName: String!
|
|
6
|
+
lastName: String!
|
|
7
|
+
emailAddress: String!
|
|
8
|
+
user: User!
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type AdministratorList implements PaginatedList {
|
|
12
|
+
items: [Administrator!]!
|
|
13
|
+
totalItems: Int!
|
|
14
|
+
}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
"Get a list of Assets"
|
|
3
|
-
assets(options: AssetListOptions): AssetList!
|
|
4
|
-
"Get a single Asset by id"
|
|
5
|
-
asset(id: ID!): Asset
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type Mutation {
|
|
9
|
-
"Create a new Asset"
|
|
10
|
-
createAssets(input: [CreateAssetInput!]!): [CreateAssetResult!]!
|
|
11
|
-
"Update an existing Asset"
|
|
12
|
-
updateAsset(input: UpdateAssetInput!): Asset!
|
|
13
|
-
"Delete an Asset"
|
|
14
|
-
deleteAsset(input: DeleteAssetInput!): DeletionResponse!
|
|
15
|
-
"Delete multiple Assets"
|
|
16
|
-
deleteAssets(input: DeleteAssetsInput!): DeletionResponse!
|
|
17
|
-
"Assign assets to channel"
|
|
18
|
-
assignAssetsToChannel(input: AssignAssetsToChannelInput!): [Asset!]!
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type MimeTypeError implements ErrorResult {
|
|
22
|
-
errorCode: ErrorCode!
|
|
23
|
-
message: String!
|
|
24
|
-
fileName: String!
|
|
25
|
-
mimeType: String!
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
union CreateAssetResult = Asset | MimeTypeError
|
|
29
|
-
|
|
30
|
-
# generated by generateListOptions function
|
|
31
|
-
input AssetListOptions {
|
|
32
|
-
tags: [String!]
|
|
33
|
-
tagsOperator: LogicalOperator
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
input CreateAssetInput {
|
|
37
|
-
file: Upload!
|
|
38
|
-
tags: [String!]
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
input CoordinateInput {
|
|
42
|
-
x: Float!
|
|
43
|
-
y: Float!
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
input DeleteAssetInput {
|
|
47
|
-
assetId: ID!
|
|
48
|
-
force: Boolean
|
|
49
|
-
deleteFromAllChannels: Boolean
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
input DeleteAssetsInput {
|
|
53
|
-
assetIds: [ID!]!
|
|
54
|
-
force: Boolean
|
|
55
|
-
deleteFromAllChannels: Boolean
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
input UpdateAssetInput {
|
|
59
|
-
id: ID!
|
|
60
|
-
name: String
|
|
61
|
-
focalPoint: CoordinateInput
|
|
62
|
-
tags: [String!]
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
input AssignAssetsToChannelInput {
|
|
66
|
-
assetIds: [ID!]!
|
|
67
|
-
channelId: ID!
|
|
68
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
"Get a list of Assets"
|
|
3
|
+
assets(options: AssetListOptions): AssetList!
|
|
4
|
+
"Get a single Asset by id"
|
|
5
|
+
asset(id: ID!): Asset
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type Mutation {
|
|
9
|
+
"Create a new Asset"
|
|
10
|
+
createAssets(input: [CreateAssetInput!]!): [CreateAssetResult!]!
|
|
11
|
+
"Update an existing Asset"
|
|
12
|
+
updateAsset(input: UpdateAssetInput!): Asset!
|
|
13
|
+
"Delete an Asset"
|
|
14
|
+
deleteAsset(input: DeleteAssetInput!): DeletionResponse!
|
|
15
|
+
"Delete multiple Assets"
|
|
16
|
+
deleteAssets(input: DeleteAssetsInput!): DeletionResponse!
|
|
17
|
+
"Assign assets to channel"
|
|
18
|
+
assignAssetsToChannel(input: AssignAssetsToChannelInput!): [Asset!]!
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type MimeTypeError implements ErrorResult {
|
|
22
|
+
errorCode: ErrorCode!
|
|
23
|
+
message: String!
|
|
24
|
+
fileName: String!
|
|
25
|
+
mimeType: String!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
union CreateAssetResult = Asset | MimeTypeError
|
|
29
|
+
|
|
30
|
+
# generated by generateListOptions function
|
|
31
|
+
input AssetListOptions {
|
|
32
|
+
tags: [String!]
|
|
33
|
+
tagsOperator: LogicalOperator
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
input CreateAssetInput {
|
|
37
|
+
file: Upload!
|
|
38
|
+
tags: [String!]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
input CoordinateInput {
|
|
42
|
+
x: Float!
|
|
43
|
+
y: Float!
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input DeleteAssetInput {
|
|
47
|
+
assetId: ID!
|
|
48
|
+
force: Boolean
|
|
49
|
+
deleteFromAllChannels: Boolean
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
input DeleteAssetsInput {
|
|
53
|
+
assetIds: [ID!]!
|
|
54
|
+
force: Boolean
|
|
55
|
+
deleteFromAllChannels: Boolean
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input UpdateAssetInput {
|
|
59
|
+
id: ID!
|
|
60
|
+
name: String
|
|
61
|
+
focalPoint: CoordinateInput
|
|
62
|
+
tags: [String!]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
input AssignAssetsToChannelInput {
|
|
66
|
+
assetIds: [ID!]!
|
|
67
|
+
channelId: ID!
|
|
68
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
me: CurrentUser
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
type Mutation {
|
|
6
|
-
"""
|
|
7
|
-
Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }})
|
|
8
|
-
|
|
9
|
-
The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie
|
|
10
|
-
to 1 year.
|
|
11
|
-
"""
|
|
12
|
-
login(username: String!, password: String!, rememberMe: Boolean): NativeAuthenticationResult!
|
|
13
|
-
"Authenticates the user using a named authentication strategy"
|
|
14
|
-
authenticate(input: AuthenticationInput!, rememberMe: Boolean): AuthenticationResult!
|
|
15
|
-
logout: Success!
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
# Populated at run-time
|
|
19
|
-
input AuthenticationInput
|
|
20
|
-
|
|
21
|
-
union NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError
|
|
22
|
-
union AuthenticationResult = CurrentUser | InvalidCredentialsError
|
|
1
|
+
type Query {
|
|
2
|
+
me: CurrentUser
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
type Mutation {
|
|
6
|
+
"""
|
|
7
|
+
Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }})
|
|
8
|
+
|
|
9
|
+
The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie
|
|
10
|
+
to 1 year.
|
|
11
|
+
"""
|
|
12
|
+
login(username: String!, password: String!, rememberMe: Boolean): NativeAuthenticationResult!
|
|
13
|
+
"Authenticates the user using a named authentication strategy"
|
|
14
|
+
authenticate(input: AuthenticationInput!, rememberMe: Boolean): AuthenticationResult!
|
|
15
|
+
logout: Success!
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
# Populated at run-time
|
|
19
|
+
input AuthenticationInput
|
|
20
|
+
|
|
21
|
+
union NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError
|
|
22
|
+
union AuthenticationResult = CurrentUser | InvalidCredentialsError
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
channels(options: ChannelListOptions): ChannelList!
|
|
3
|
-
channel(id: ID!): Channel
|
|
4
|
-
activeChannel: Channel!
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
type Mutation {
|
|
8
|
-
"Create a new Channel"
|
|
9
|
-
createChannel(input: CreateChannelInput!): CreateChannelResult!
|
|
10
|
-
|
|
11
|
-
"Update an existing Channel"
|
|
12
|
-
updateChannel(input: UpdateChannelInput!): UpdateChannelResult!
|
|
13
|
-
|
|
14
|
-
"Delete a Channel"
|
|
15
|
-
deleteChannel(id: ID!): DeletionResponse!
|
|
16
|
-
|
|
17
|
-
"Delete multiple Channels"
|
|
18
|
-
deleteChannels(ids: [ID!]!): [DeletionResponse!]!
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type ChannelList implements PaginatedList {
|
|
22
|
-
items: [Channel!]!
|
|
23
|
-
totalItems: Int!
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
input ChannelListOptions
|
|
27
|
-
|
|
28
|
-
input CreateChannelInput {
|
|
29
|
-
code: String!
|
|
30
|
-
token: String!
|
|
31
|
-
defaultLanguageCode: LanguageCode!
|
|
32
|
-
availableLanguageCodes: [LanguageCode!]
|
|
33
|
-
pricesIncludeTax: Boolean!
|
|
34
|
-
currencyCode: CurrencyCode @deprecated(reason: "Use defaultCurrencyCode instead")
|
|
35
|
-
defaultCurrencyCode: CurrencyCode
|
|
36
|
-
availableCurrencyCodes: [CurrencyCode!]
|
|
37
|
-
trackInventory: Boolean
|
|
38
|
-
outOfStockThreshold: Int
|
|
39
|
-
defaultTaxZoneId: ID!
|
|
40
|
-
defaultShippingZoneId: ID!
|
|
41
|
-
sellerId: ID
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
input UpdateChannelInput {
|
|
45
|
-
id: ID!
|
|
46
|
-
code: String
|
|
47
|
-
token: String
|
|
48
|
-
defaultLanguageCode: LanguageCode
|
|
49
|
-
availableLanguageCodes: [LanguageCode!]
|
|
50
|
-
pricesIncludeTax: Boolean
|
|
51
|
-
currencyCode: CurrencyCode @deprecated(reason: "Use defaultCurrencyCode instead")
|
|
52
|
-
defaultCurrencyCode: CurrencyCode
|
|
53
|
-
availableCurrencyCodes: [CurrencyCode!]
|
|
54
|
-
trackInventory: Boolean
|
|
55
|
-
outOfStockThreshold: Int
|
|
56
|
-
defaultTaxZoneId: ID
|
|
57
|
-
defaultShippingZoneId: ID
|
|
58
|
-
sellerId: ID
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
"Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings"
|
|
62
|
-
type LanguageNotAvailableError implements ErrorResult {
|
|
63
|
-
errorCode: ErrorCode!
|
|
64
|
-
message: String!
|
|
65
|
-
languageCode: String!
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
union CreateChannelResult = Channel | LanguageNotAvailableError
|
|
69
|
-
union UpdateChannelResult = Channel | LanguageNotAvailableError
|
|
1
|
+
type Query {
|
|
2
|
+
channels(options: ChannelListOptions): ChannelList!
|
|
3
|
+
channel(id: ID!): Channel
|
|
4
|
+
activeChannel: Channel!
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type Mutation {
|
|
8
|
+
"Create a new Channel"
|
|
9
|
+
createChannel(input: CreateChannelInput!): CreateChannelResult!
|
|
10
|
+
|
|
11
|
+
"Update an existing Channel"
|
|
12
|
+
updateChannel(input: UpdateChannelInput!): UpdateChannelResult!
|
|
13
|
+
|
|
14
|
+
"Delete a Channel"
|
|
15
|
+
deleteChannel(id: ID!): DeletionResponse!
|
|
16
|
+
|
|
17
|
+
"Delete multiple Channels"
|
|
18
|
+
deleteChannels(ids: [ID!]!): [DeletionResponse!]!
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type ChannelList implements PaginatedList {
|
|
22
|
+
items: [Channel!]!
|
|
23
|
+
totalItems: Int!
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
input ChannelListOptions
|
|
27
|
+
|
|
28
|
+
input CreateChannelInput {
|
|
29
|
+
code: String!
|
|
30
|
+
token: String!
|
|
31
|
+
defaultLanguageCode: LanguageCode!
|
|
32
|
+
availableLanguageCodes: [LanguageCode!]
|
|
33
|
+
pricesIncludeTax: Boolean!
|
|
34
|
+
currencyCode: CurrencyCode @deprecated(reason: "Use defaultCurrencyCode instead")
|
|
35
|
+
defaultCurrencyCode: CurrencyCode
|
|
36
|
+
availableCurrencyCodes: [CurrencyCode!]
|
|
37
|
+
trackInventory: Boolean
|
|
38
|
+
outOfStockThreshold: Int
|
|
39
|
+
defaultTaxZoneId: ID!
|
|
40
|
+
defaultShippingZoneId: ID!
|
|
41
|
+
sellerId: ID
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
input UpdateChannelInput {
|
|
45
|
+
id: ID!
|
|
46
|
+
code: String
|
|
47
|
+
token: String
|
|
48
|
+
defaultLanguageCode: LanguageCode
|
|
49
|
+
availableLanguageCodes: [LanguageCode!]
|
|
50
|
+
pricesIncludeTax: Boolean
|
|
51
|
+
currencyCode: CurrencyCode @deprecated(reason: "Use defaultCurrencyCode instead")
|
|
52
|
+
defaultCurrencyCode: CurrencyCode
|
|
53
|
+
availableCurrencyCodes: [CurrencyCode!]
|
|
54
|
+
trackInventory: Boolean
|
|
55
|
+
outOfStockThreshold: Int
|
|
56
|
+
defaultTaxZoneId: ID
|
|
57
|
+
defaultShippingZoneId: ID
|
|
58
|
+
sellerId: ID
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
"Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings"
|
|
62
|
+
type LanguageNotAvailableError implements ErrorResult {
|
|
63
|
+
errorCode: ErrorCode!
|
|
64
|
+
message: String!
|
|
65
|
+
languageCode: String!
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
union CreateChannelResult = Channel | LanguageNotAvailableError
|
|
69
|
+
union UpdateChannelResult = Channel | LanguageNotAvailableError
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Collection implements Node {
|
|
2
|
-
isPrivate: Boolean!
|
|
3
|
-
inheritFilters: Boolean!
|
|
4
|
-
}
|
|
1
|
+
type Collection implements Node {
|
|
2
|
+
isPrivate: Boolean!
|
|
3
|
+
inheritFilters: Boolean!
|
|
4
|
+
}
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
collections(options: CollectionListOptions): CollectionList!
|
|
3
|
-
"Get a Collection either by id or slug. If neither id nor slug is specified, an error will result."
|
|
4
|
-
collection(id: ID, slug: String): Collection
|
|
5
|
-
collectionFilters: [ConfigurableOperationDefinition!]!
|
|
6
|
-
"Used for real-time previews of the contents of a Collection"
|
|
7
|
-
previewCollectionVariants(input: PreviewCollectionVariantsInput!, options: ProductVariantListOptions): ProductVariantList!
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type Mutation {
|
|
11
|
-
"Create a new Collection"
|
|
12
|
-
createCollection(input: CreateCollectionInput!): Collection!
|
|
13
|
-
|
|
14
|
-
"Update an existing Collection"
|
|
15
|
-
updateCollection(input: UpdateCollectionInput!): Collection!
|
|
16
|
-
|
|
17
|
-
"Delete a Collection and all of its descendants"
|
|
18
|
-
deleteCollection(id: ID!): DeletionResponse!
|
|
19
|
-
|
|
20
|
-
"Delete multiple Collections and all of their descendants"
|
|
21
|
-
deleteCollections(ids: [ID!]!): [DeletionResponse!]!
|
|
22
|
-
|
|
23
|
-
"Move a Collection to a different parent or index"
|
|
24
|
-
moveCollection(input: MoveCollectionInput!): Collection!
|
|
25
|
-
|
|
26
|
-
"Assigns Collections to the specified Channel"
|
|
27
|
-
assignCollectionsToChannel(input: AssignCollectionsToChannelInput!): [Collection!]!
|
|
28
|
-
|
|
29
|
-
"Removes Collections from the specified Channel"
|
|
30
|
-
removeCollectionsFromChannel(input: RemoveCollectionsFromChannelInput!): [Collection!]!
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
# generated by generateListOptions function
|
|
34
|
-
input CollectionListOptions {
|
|
35
|
-
topLevelOnly: Boolean
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
input MoveCollectionInput {
|
|
39
|
-
collectionId: ID!
|
|
40
|
-
parentId: ID!
|
|
41
|
-
index: Int!
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
input CreateCollectionTranslationInput {
|
|
45
|
-
languageCode: LanguageCode!
|
|
46
|
-
name: String!
|
|
47
|
-
slug: String!
|
|
48
|
-
description: String!
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
input UpdateCollectionTranslationInput {
|
|
52
|
-
id: ID
|
|
53
|
-
languageCode: LanguageCode!
|
|
54
|
-
name: String
|
|
55
|
-
slug: String
|
|
56
|
-
description: String
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
input CreateCollectionInput {
|
|
60
|
-
isPrivate: Boolean
|
|
61
|
-
featuredAssetId: ID
|
|
62
|
-
assetIds: [ID!]
|
|
63
|
-
parentId: ID
|
|
64
|
-
inheritFilters: Boolean
|
|
65
|
-
filters: [ConfigurableOperationInput!]!
|
|
66
|
-
translations: [CreateCollectionTranslationInput!]!
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
input PreviewCollectionVariantsInput {
|
|
70
|
-
parentId: ID
|
|
71
|
-
inheritFilters: Boolean!
|
|
72
|
-
filters: [ConfigurableOperationInput!]!
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
input UpdateCollectionInput {
|
|
76
|
-
id: ID!
|
|
77
|
-
isPrivate: Boolean
|
|
78
|
-
featuredAssetId: ID
|
|
79
|
-
parentId: ID
|
|
80
|
-
assetIds: [ID!]
|
|
81
|
-
inheritFilters: Boolean
|
|
82
|
-
filters: [ConfigurableOperationInput!]
|
|
83
|
-
translations: [UpdateCollectionTranslationInput!]
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
input AssignCollectionsToChannelInput {
|
|
87
|
-
collectionIds: [ID!]!
|
|
88
|
-
channelId: ID!
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
input RemoveCollectionsFromChannelInput {
|
|
92
|
-
collectionIds: [ID!]!
|
|
93
|
-
channelId: ID!
|
|
94
|
-
}
|
|
1
|
+
type Query {
|
|
2
|
+
collections(options: CollectionListOptions): CollectionList!
|
|
3
|
+
"Get a Collection either by id or slug. If neither id nor slug is specified, an error will result."
|
|
4
|
+
collection(id: ID, slug: String): Collection
|
|
5
|
+
collectionFilters: [ConfigurableOperationDefinition!]!
|
|
6
|
+
"Used for real-time previews of the contents of a Collection"
|
|
7
|
+
previewCollectionVariants(input: PreviewCollectionVariantsInput!, options: ProductVariantListOptions): ProductVariantList!
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type Mutation {
|
|
11
|
+
"Create a new Collection"
|
|
12
|
+
createCollection(input: CreateCollectionInput!): Collection!
|
|
13
|
+
|
|
14
|
+
"Update an existing Collection"
|
|
15
|
+
updateCollection(input: UpdateCollectionInput!): Collection!
|
|
16
|
+
|
|
17
|
+
"Delete a Collection and all of its descendants"
|
|
18
|
+
deleteCollection(id: ID!): DeletionResponse!
|
|
19
|
+
|
|
20
|
+
"Delete multiple Collections and all of their descendants"
|
|
21
|
+
deleteCollections(ids: [ID!]!): [DeletionResponse!]!
|
|
22
|
+
|
|
23
|
+
"Move a Collection to a different parent or index"
|
|
24
|
+
moveCollection(input: MoveCollectionInput!): Collection!
|
|
25
|
+
|
|
26
|
+
"Assigns Collections to the specified Channel"
|
|
27
|
+
assignCollectionsToChannel(input: AssignCollectionsToChannelInput!): [Collection!]!
|
|
28
|
+
|
|
29
|
+
"Removes Collections from the specified Channel"
|
|
30
|
+
removeCollectionsFromChannel(input: RemoveCollectionsFromChannelInput!): [Collection!]!
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
# generated by generateListOptions function
|
|
34
|
+
input CollectionListOptions {
|
|
35
|
+
topLevelOnly: Boolean
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input MoveCollectionInput {
|
|
39
|
+
collectionId: ID!
|
|
40
|
+
parentId: ID!
|
|
41
|
+
index: Int!
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
input CreateCollectionTranslationInput {
|
|
45
|
+
languageCode: LanguageCode!
|
|
46
|
+
name: String!
|
|
47
|
+
slug: String!
|
|
48
|
+
description: String!
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
input UpdateCollectionTranslationInput {
|
|
52
|
+
id: ID
|
|
53
|
+
languageCode: LanguageCode!
|
|
54
|
+
name: String
|
|
55
|
+
slug: String
|
|
56
|
+
description: String
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
input CreateCollectionInput {
|
|
60
|
+
isPrivate: Boolean
|
|
61
|
+
featuredAssetId: ID
|
|
62
|
+
assetIds: [ID!]
|
|
63
|
+
parentId: ID
|
|
64
|
+
inheritFilters: Boolean
|
|
65
|
+
filters: [ConfigurableOperationInput!]!
|
|
66
|
+
translations: [CreateCollectionTranslationInput!]!
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
input PreviewCollectionVariantsInput {
|
|
70
|
+
parentId: ID
|
|
71
|
+
inheritFilters: Boolean!
|
|
72
|
+
filters: [ConfigurableOperationInput!]!
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
input UpdateCollectionInput {
|
|
76
|
+
id: ID!
|
|
77
|
+
isPrivate: Boolean
|
|
78
|
+
featuredAssetId: ID
|
|
79
|
+
parentId: ID
|
|
80
|
+
assetIds: [ID!]
|
|
81
|
+
inheritFilters: Boolean
|
|
82
|
+
filters: [ConfigurableOperationInput!]
|
|
83
|
+
translations: [UpdateCollectionTranslationInput!]
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input AssignCollectionsToChannelInput {
|
|
87
|
+
collectionIds: [ID!]!
|
|
88
|
+
channelId: ID!
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input RemoveCollectionsFromChannelInput {
|
|
92
|
+
collectionIds: [ID!]!
|
|
93
|
+
channelId: ID!
|
|
94
|
+
}
|