@maioradv/cms-basic-lib 1.7.0 → 1.7.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/README.md +4 -4
- package/dist/apitokens/graphql.js +38 -38
- package/dist/bundles/graphql.js +75 -75
- package/dist/collections/graphql.js +80 -80
- package/dist/collections/types.d.ts +1 -0
- package/dist/configs/graphql.js +69 -69
- package/dist/images/graphql.js +26 -26
- package/dist/languages/graphql.js +35 -35
- package/dist/popups/graphql.js +37 -37
- package/dist/productAttributes/graphql.js +72 -72
- package/dist/products/graphql.js +69 -69
- package/dist/reservations/graphql.js +66 -66
- package/dist/reservations/types.d.ts +3 -1
- package/dist/reservations/types.js +2 -0
- package/dist/roles/graphql.js +48 -48
- package/dist/settings/graphql.js +33 -33
- package/package.json +30 -30
- package/dist/configs/services/ti-delizio.config.d.ts +0 -25
- package/dist/configs/services/ti-delizio.config.js +0 -9
|
@@ -5,47 +5,47 @@ exports.LanguagesResolvers = {
|
|
|
5
5
|
query: {
|
|
6
6
|
languages: {
|
|
7
7
|
name: 'languages',
|
|
8
|
-
query: `query LanguageList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
-
languages(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
-
edges {
|
|
11
|
-
node {
|
|
12
|
-
id
|
|
13
|
-
}
|
|
14
|
-
cursor
|
|
15
|
-
}
|
|
16
|
-
nodes {
|
|
17
|
-
id
|
|
18
|
-
name
|
|
19
|
-
active
|
|
20
|
-
iso
|
|
21
|
-
locale
|
|
22
|
-
published
|
|
23
|
-
default
|
|
24
|
-
translations {
|
|
25
|
-
key
|
|
26
|
-
locale
|
|
27
|
-
value
|
|
28
|
-
}
|
|
29
|
-
createdAt
|
|
30
|
-
updatedAt
|
|
31
|
-
}
|
|
32
|
-
meta {
|
|
33
|
-
startCursor
|
|
34
|
-
endCursor
|
|
35
|
-
hasNextPage
|
|
36
|
-
hasPreviousPage
|
|
37
|
-
}
|
|
38
|
-
}
|
|
8
|
+
query: `query LanguageList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
+
languages(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
+
edges {
|
|
11
|
+
node {
|
|
12
|
+
id
|
|
13
|
+
}
|
|
14
|
+
cursor
|
|
15
|
+
}
|
|
16
|
+
nodes {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
active
|
|
20
|
+
iso
|
|
21
|
+
locale
|
|
22
|
+
published
|
|
23
|
+
default
|
|
24
|
+
translations {
|
|
25
|
+
key
|
|
26
|
+
locale
|
|
27
|
+
value
|
|
28
|
+
}
|
|
29
|
+
createdAt
|
|
30
|
+
updatedAt
|
|
31
|
+
}
|
|
32
|
+
meta {
|
|
33
|
+
startCursor
|
|
34
|
+
endCursor
|
|
35
|
+
hasNextPage
|
|
36
|
+
hasPreviousPage
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
39
|
}`,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
mutation: {
|
|
43
43
|
removeLanguages: {
|
|
44
44
|
name: 'removeLanguages',
|
|
45
|
-
query: `mutation LanguageDelete($id: [Int!]!){
|
|
46
|
-
removeLanguages(id: $id) {
|
|
47
|
-
count
|
|
48
|
-
}
|
|
45
|
+
query: `mutation LanguageDelete($id: [Int!]!){
|
|
46
|
+
removeLanguages(id: $id) {
|
|
47
|
+
count
|
|
48
|
+
}
|
|
49
49
|
}`,
|
|
50
50
|
},
|
|
51
51
|
}
|
package/dist/popups/graphql.js
CHANGED
|
@@ -5,49 +5,49 @@ exports.PopupsResolvers = {
|
|
|
5
5
|
query: {
|
|
6
6
|
popups: {
|
|
7
7
|
name: 'popups',
|
|
8
|
-
query: `query PopupList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
-
popups(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
-
edges {
|
|
11
|
-
node {
|
|
12
|
-
id
|
|
13
|
-
}
|
|
14
|
-
cursor
|
|
15
|
-
}
|
|
16
|
-
nodes {
|
|
17
|
-
id
|
|
18
|
-
name
|
|
19
|
-
modal
|
|
20
|
-
target
|
|
21
|
-
published
|
|
22
|
-
translations {
|
|
23
|
-
key
|
|
24
|
-
locale
|
|
25
|
-
value
|
|
26
|
-
}
|
|
27
|
-
metafields {
|
|
28
|
-
key
|
|
29
|
-
value
|
|
30
|
-
}
|
|
31
|
-
createdAt
|
|
32
|
-
updatedAt
|
|
33
|
-
}
|
|
34
|
-
meta {
|
|
35
|
-
startCursor
|
|
36
|
-
endCursor
|
|
37
|
-
hasNextPage
|
|
38
|
-
hasPreviousPage
|
|
39
|
-
}
|
|
40
|
-
}
|
|
8
|
+
query: `query PopupList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
+
popups(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
+
edges {
|
|
11
|
+
node {
|
|
12
|
+
id
|
|
13
|
+
}
|
|
14
|
+
cursor
|
|
15
|
+
}
|
|
16
|
+
nodes {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
modal
|
|
20
|
+
target
|
|
21
|
+
published
|
|
22
|
+
translations {
|
|
23
|
+
key
|
|
24
|
+
locale
|
|
25
|
+
value
|
|
26
|
+
}
|
|
27
|
+
metafields {
|
|
28
|
+
key
|
|
29
|
+
value
|
|
30
|
+
}
|
|
31
|
+
createdAt
|
|
32
|
+
updatedAt
|
|
33
|
+
}
|
|
34
|
+
meta {
|
|
35
|
+
startCursor
|
|
36
|
+
endCursor
|
|
37
|
+
hasNextPage
|
|
38
|
+
hasPreviousPage
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
41
|
}`,
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
mutation: {
|
|
45
45
|
removePopups: {
|
|
46
46
|
name: 'removePopups',
|
|
47
|
-
query: `mutation PopupDelete($id: [Int!]!){
|
|
48
|
-
removePopups(id: $id) {
|
|
49
|
-
count
|
|
50
|
-
}
|
|
47
|
+
query: `mutation PopupDelete($id: [Int!]!){
|
|
48
|
+
removePopups(id: $id) {
|
|
49
|
+
count
|
|
50
|
+
}
|
|
51
51
|
}`,
|
|
52
52
|
},
|
|
53
53
|
}
|
|
@@ -5,48 +5,48 @@ exports.ProductAttributesResolvers = {
|
|
|
5
5
|
query: {
|
|
6
6
|
productAttributes: {
|
|
7
7
|
name: 'productAttributes',
|
|
8
|
-
query: `query ProductAttributeList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
-
productAttributes(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
-
edges {
|
|
11
|
-
node {
|
|
12
|
-
id
|
|
13
|
-
}
|
|
14
|
-
cursor
|
|
15
|
-
}
|
|
16
|
-
nodes {
|
|
17
|
-
id
|
|
18
|
-
name
|
|
19
|
-
slug
|
|
20
|
-
translations {
|
|
21
|
-
key
|
|
22
|
-
locale
|
|
23
|
-
value
|
|
24
|
-
}
|
|
25
|
-
metafields {
|
|
26
|
-
key
|
|
27
|
-
value
|
|
28
|
-
}
|
|
29
|
-
published
|
|
30
|
-
createdAt
|
|
31
|
-
updatedAt
|
|
32
|
-
}
|
|
33
|
-
meta {
|
|
34
|
-
startCursor
|
|
35
|
-
endCursor
|
|
36
|
-
hasNextPage
|
|
37
|
-
hasPreviousPage
|
|
38
|
-
}
|
|
39
|
-
}
|
|
8
|
+
query: `query ProductAttributeList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
+
productAttributes(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
+
edges {
|
|
11
|
+
node {
|
|
12
|
+
id
|
|
13
|
+
}
|
|
14
|
+
cursor
|
|
15
|
+
}
|
|
16
|
+
nodes {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
slug
|
|
20
|
+
translations {
|
|
21
|
+
key
|
|
22
|
+
locale
|
|
23
|
+
value
|
|
24
|
+
}
|
|
25
|
+
metafields {
|
|
26
|
+
key
|
|
27
|
+
value
|
|
28
|
+
}
|
|
29
|
+
published
|
|
30
|
+
createdAt
|
|
31
|
+
updatedAt
|
|
32
|
+
}
|
|
33
|
+
meta {
|
|
34
|
+
startCursor
|
|
35
|
+
endCursor
|
|
36
|
+
hasNextPage
|
|
37
|
+
hasPreviousPage
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
}`,
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
mutation: {
|
|
44
44
|
removeProductAttributes: {
|
|
45
45
|
name: 'removeProductAttributes',
|
|
46
|
-
query: `mutation ProductAttributeDelete($id: [Int!]!){
|
|
47
|
-
removeProductAttributes(id: $id) {
|
|
48
|
-
count
|
|
49
|
-
}
|
|
46
|
+
query: `mutation ProductAttributeDelete($id: [Int!]!){
|
|
47
|
+
removeProductAttributes(id: $id) {
|
|
48
|
+
count
|
|
49
|
+
}
|
|
50
50
|
}`,
|
|
51
51
|
},
|
|
52
52
|
}
|
|
@@ -55,48 +55,48 @@ exports.ProductAttributeValuesResolvers = {
|
|
|
55
55
|
query: {
|
|
56
56
|
productAttributeValues: {
|
|
57
57
|
name: 'productAttributeValues',
|
|
58
|
-
query: `query ProductAttributeValueList($limit: Int, $after: Int, $before: Int, $attributeSlug: String, $published: Boolean $sorting: String){
|
|
59
|
-
productAttributeValues(limit: $limit, after: $after, before: $before, attributeSlug: $attributeSlug, published: $published, sorting: $sorting){
|
|
60
|
-
edges {
|
|
61
|
-
node {
|
|
62
|
-
id
|
|
63
|
-
}
|
|
64
|
-
cursor
|
|
65
|
-
}
|
|
66
|
-
nodes {
|
|
67
|
-
id
|
|
68
|
-
name
|
|
69
|
-
productAttributeId
|
|
70
|
-
translations {
|
|
71
|
-
key
|
|
72
|
-
locale
|
|
73
|
-
value
|
|
74
|
-
}
|
|
75
|
-
metafields {
|
|
76
|
-
key
|
|
77
|
-
value
|
|
78
|
-
}
|
|
79
|
-
published
|
|
80
|
-
createdAt
|
|
81
|
-
updatedAt
|
|
82
|
-
}
|
|
83
|
-
meta {
|
|
84
|
-
startCursor
|
|
85
|
-
endCursor
|
|
86
|
-
hasNextPage
|
|
87
|
-
hasPreviousPage
|
|
88
|
-
}
|
|
89
|
-
}
|
|
58
|
+
query: `query ProductAttributeValueList($limit: Int, $after: Int, $before: Int, $attributeSlug: String, $published: Boolean $sorting: String){
|
|
59
|
+
productAttributeValues(limit: $limit, after: $after, before: $before, attributeSlug: $attributeSlug, published: $published, sorting: $sorting){
|
|
60
|
+
edges {
|
|
61
|
+
node {
|
|
62
|
+
id
|
|
63
|
+
}
|
|
64
|
+
cursor
|
|
65
|
+
}
|
|
66
|
+
nodes {
|
|
67
|
+
id
|
|
68
|
+
name
|
|
69
|
+
productAttributeId
|
|
70
|
+
translations {
|
|
71
|
+
key
|
|
72
|
+
locale
|
|
73
|
+
value
|
|
74
|
+
}
|
|
75
|
+
metafields {
|
|
76
|
+
key
|
|
77
|
+
value
|
|
78
|
+
}
|
|
79
|
+
published
|
|
80
|
+
createdAt
|
|
81
|
+
updatedAt
|
|
82
|
+
}
|
|
83
|
+
meta {
|
|
84
|
+
startCursor
|
|
85
|
+
endCursor
|
|
86
|
+
hasNextPage
|
|
87
|
+
hasPreviousPage
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
90
|
}`,
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
mutation: {
|
|
94
94
|
removeProductAttributeValues: {
|
|
95
95
|
name: 'removeProductAttributeValues',
|
|
96
|
-
query: `mutation ProductAttributeValueDelete($id: [Int!]!){
|
|
97
|
-
removeProductAttributeValues(id: $id) {
|
|
98
|
-
count
|
|
99
|
-
}
|
|
96
|
+
query: `mutation ProductAttributeValueDelete($id: [Int!]!){
|
|
97
|
+
removeProductAttributeValues(id: $id) {
|
|
98
|
+
count
|
|
99
|
+
}
|
|
100
100
|
}`,
|
|
101
101
|
},
|
|
102
102
|
}
|
package/dist/products/graphql.js
CHANGED
|
@@ -5,85 +5,85 @@ exports.ProductsResolvers = {
|
|
|
5
5
|
query: {
|
|
6
6
|
products: {
|
|
7
7
|
name: 'products',
|
|
8
|
-
query: `query ProductList($limit: Int, $after: Int, $before: Int, $collectionId: Int, $sorting: String){
|
|
9
|
-
products(limit: $limit, after: $after, before: $before, collectionId: $collectionId, sorting: $sorting){
|
|
10
|
-
edges {
|
|
11
|
-
node {
|
|
12
|
-
id
|
|
13
|
-
}
|
|
14
|
-
cursor
|
|
15
|
-
}
|
|
16
|
-
nodes {
|
|
17
|
-
id
|
|
18
|
-
slug
|
|
19
|
-
title
|
|
20
|
-
subtitle
|
|
21
|
-
description
|
|
22
|
-
tags
|
|
23
|
-
externalId
|
|
24
|
-
ProductVariant {
|
|
25
|
-
id
|
|
26
|
-
title
|
|
27
|
-
subtitle
|
|
28
|
-
description
|
|
29
|
-
translations {
|
|
30
|
-
key
|
|
31
|
-
locale
|
|
32
|
-
value
|
|
33
|
-
}
|
|
34
|
-
metafields {
|
|
35
|
-
key
|
|
36
|
-
value
|
|
37
|
-
}
|
|
38
|
-
price
|
|
39
|
-
fullPrice
|
|
40
|
-
productId
|
|
41
|
-
published
|
|
42
|
-
createdAt
|
|
43
|
-
updatedAt
|
|
44
|
-
}
|
|
45
|
-
translations {
|
|
46
|
-
key
|
|
47
|
-
locale
|
|
48
|
-
value
|
|
49
|
-
}
|
|
50
|
-
metafields {
|
|
51
|
-
key
|
|
52
|
-
value
|
|
53
|
-
}
|
|
54
|
-
published
|
|
55
|
-
createdAt
|
|
56
|
-
updatedAt
|
|
57
|
-
}
|
|
58
|
-
meta {
|
|
59
|
-
startCursor
|
|
60
|
-
endCursor
|
|
61
|
-
hasNextPage
|
|
62
|
-
hasPreviousPage
|
|
63
|
-
}
|
|
64
|
-
}
|
|
8
|
+
query: `query ProductList($limit: Int, $after: Int, $before: Int, $collectionId: Int, $sorting: String){
|
|
9
|
+
products(limit: $limit, after: $after, before: $before, collectionId: $collectionId, sorting: $sorting){
|
|
10
|
+
edges {
|
|
11
|
+
node {
|
|
12
|
+
id
|
|
13
|
+
}
|
|
14
|
+
cursor
|
|
15
|
+
}
|
|
16
|
+
nodes {
|
|
17
|
+
id
|
|
18
|
+
slug
|
|
19
|
+
title
|
|
20
|
+
subtitle
|
|
21
|
+
description
|
|
22
|
+
tags
|
|
23
|
+
externalId
|
|
24
|
+
ProductVariant {
|
|
25
|
+
id
|
|
26
|
+
title
|
|
27
|
+
subtitle
|
|
28
|
+
description
|
|
29
|
+
translations {
|
|
30
|
+
key
|
|
31
|
+
locale
|
|
32
|
+
value
|
|
33
|
+
}
|
|
34
|
+
metafields {
|
|
35
|
+
key
|
|
36
|
+
value
|
|
37
|
+
}
|
|
38
|
+
price
|
|
39
|
+
fullPrice
|
|
40
|
+
productId
|
|
41
|
+
published
|
|
42
|
+
createdAt
|
|
43
|
+
updatedAt
|
|
44
|
+
}
|
|
45
|
+
translations {
|
|
46
|
+
key
|
|
47
|
+
locale
|
|
48
|
+
value
|
|
49
|
+
}
|
|
50
|
+
metafields {
|
|
51
|
+
key
|
|
52
|
+
value
|
|
53
|
+
}
|
|
54
|
+
published
|
|
55
|
+
createdAt
|
|
56
|
+
updatedAt
|
|
57
|
+
}
|
|
58
|
+
meta {
|
|
59
|
+
startCursor
|
|
60
|
+
endCursor
|
|
61
|
+
hasNextPage
|
|
62
|
+
hasPreviousPage
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
65
|
}`,
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
mutation: {
|
|
69
69
|
removeProducts: {
|
|
70
70
|
name: 'removeProducts',
|
|
71
|
-
query: `mutation ProductDelete($id: [Int!]!){
|
|
72
|
-
removeProducts(id: $id) {
|
|
73
|
-
count
|
|
74
|
-
}
|
|
71
|
+
query: `mutation ProductDelete($id: [Int!]!){
|
|
72
|
+
removeProducts(id: $id) {
|
|
73
|
+
count
|
|
74
|
+
}
|
|
75
75
|
}`,
|
|
76
76
|
},
|
|
77
77
|
updateManyProductAttributes: {
|
|
78
78
|
name: 'updateManyProductAttributes',
|
|
79
|
-
query: `mutation ProductAttributesUpdate($productId: Int!, $updateList:[UpdateManyProductAttributesListDto!]!) {
|
|
80
|
-
updateManyProductAttributes(productId:$productId,updateList:$updateList){
|
|
81
|
-
productAttributeValueId
|
|
82
|
-
productId
|
|
83
|
-
position
|
|
84
|
-
createdAt
|
|
85
|
-
updatedAt
|
|
86
|
-
}
|
|
79
|
+
query: `mutation ProductAttributesUpdate($productId: Int!, $updateList:[UpdateManyProductAttributesListDto!]!) {
|
|
80
|
+
updateManyProductAttributes(productId:$productId,updateList:$updateList){
|
|
81
|
+
productAttributeValueId
|
|
82
|
+
productId
|
|
83
|
+
position
|
|
84
|
+
createdAt
|
|
85
|
+
updatedAt
|
|
86
|
+
}
|
|
87
87
|
}`
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -5,82 +5,82 @@ exports.ReservationsResolvers = {
|
|
|
5
5
|
query: {
|
|
6
6
|
reservations: {
|
|
7
7
|
name: 'reservations',
|
|
8
|
-
query: `query ReservationList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
-
reservations(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
-
edges {
|
|
11
|
-
node {
|
|
12
|
-
id
|
|
13
|
-
}
|
|
14
|
-
cursor
|
|
15
|
-
}
|
|
16
|
-
nodes {
|
|
17
|
-
id
|
|
18
|
-
source
|
|
19
|
-
status
|
|
20
|
-
date
|
|
21
|
-
guestCount
|
|
22
|
-
name
|
|
23
|
-
lastName
|
|
24
|
-
phone
|
|
25
|
-
email
|
|
26
|
-
notes
|
|
27
|
-
metafields {
|
|
28
|
-
key
|
|
29
|
-
value
|
|
30
|
-
}
|
|
31
|
-
createdAt
|
|
32
|
-
updatedAt
|
|
33
|
-
}
|
|
34
|
-
meta {
|
|
35
|
-
startCursor
|
|
36
|
-
endCursor
|
|
37
|
-
hasNextPage
|
|
38
|
-
hasPreviousPage
|
|
39
|
-
}
|
|
40
|
-
}
|
|
8
|
+
query: `query ReservationList($limit: Int, $after: Int, $before: Int, $sorting: String){
|
|
9
|
+
reservations(limit: $limit, after: $after, before: $before, sorting: $sorting){
|
|
10
|
+
edges {
|
|
11
|
+
node {
|
|
12
|
+
id
|
|
13
|
+
}
|
|
14
|
+
cursor
|
|
15
|
+
}
|
|
16
|
+
nodes {
|
|
17
|
+
id
|
|
18
|
+
source
|
|
19
|
+
status
|
|
20
|
+
date
|
|
21
|
+
guestCount
|
|
22
|
+
name
|
|
23
|
+
lastName
|
|
24
|
+
phone
|
|
25
|
+
email
|
|
26
|
+
notes
|
|
27
|
+
metafields {
|
|
28
|
+
key
|
|
29
|
+
value
|
|
30
|
+
}
|
|
31
|
+
createdAt
|
|
32
|
+
updatedAt
|
|
33
|
+
}
|
|
34
|
+
meta {
|
|
35
|
+
startCursor
|
|
36
|
+
endCursor
|
|
37
|
+
hasNextPage
|
|
38
|
+
hasPreviousPage
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
41
|
}`,
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
mutation: {
|
|
45
45
|
removeReservations: {
|
|
46
46
|
name: 'removeReservations',
|
|
47
|
-
query: `mutation ReservationDelete($id: [Int!]!){
|
|
48
|
-
removeReservations(id: $id) {
|
|
49
|
-
count
|
|
50
|
-
}
|
|
47
|
+
query: `mutation ReservationDelete($id: [Int!]!){
|
|
48
|
+
removeReservations(id: $id) {
|
|
49
|
+
count
|
|
50
|
+
}
|
|
51
51
|
}`,
|
|
52
52
|
},
|
|
53
53
|
pushReservation: {
|
|
54
54
|
name: 'pushReservation',
|
|
55
|
-
query: `mutation ReservationPush($source: ReservationSource, $date: DateTime!, $guestCount: Int!, $name: String!, $lastName: String, $phone: String!, $email: String, $notes: String, $metafields: [MetafieldEntry!]){
|
|
56
|
-
pushReservation(
|
|
57
|
-
source: $source,
|
|
58
|
-
date: $date,
|
|
59
|
-
guestCount: $guestCount,
|
|
60
|
-
name: $name,
|
|
61
|
-
lastName: $lastName,
|
|
62
|
-
phone: $phone,
|
|
63
|
-
email: $email,
|
|
64
|
-
notes: $notes,
|
|
65
|
-
metafields: $metafields
|
|
66
|
-
) {
|
|
67
|
-
id
|
|
68
|
-
source
|
|
69
|
-
status
|
|
70
|
-
date
|
|
71
|
-
guestCount
|
|
72
|
-
name
|
|
73
|
-
lastName
|
|
74
|
-
phone
|
|
75
|
-
email
|
|
76
|
-
notes
|
|
77
|
-
metafields {
|
|
78
|
-
key
|
|
79
|
-
value
|
|
80
|
-
}
|
|
81
|
-
createdAt
|
|
82
|
-
updatedAt
|
|
83
|
-
}
|
|
55
|
+
query: `mutation ReservationPush($source: ReservationSource, $date: DateTime!, $guestCount: Int!, $name: String!, $lastName: String, $phone: String!, $email: String, $notes: String, $metafields: [MetafieldEntry!]){
|
|
56
|
+
pushReservation(
|
|
57
|
+
source: $source,
|
|
58
|
+
date: $date,
|
|
59
|
+
guestCount: $guestCount,
|
|
60
|
+
name: $name,
|
|
61
|
+
lastName: $lastName,
|
|
62
|
+
phone: $phone,
|
|
63
|
+
email: $email,
|
|
64
|
+
notes: $notes,
|
|
65
|
+
metafields: $metafields
|
|
66
|
+
) {
|
|
67
|
+
id
|
|
68
|
+
source
|
|
69
|
+
status
|
|
70
|
+
date
|
|
71
|
+
guestCount
|
|
72
|
+
name
|
|
73
|
+
lastName
|
|
74
|
+
phone
|
|
75
|
+
email
|
|
76
|
+
notes
|
|
77
|
+
metafields {
|
|
78
|
+
key
|
|
79
|
+
value
|
|
80
|
+
}
|
|
81
|
+
createdAt
|
|
82
|
+
updatedAt
|
|
83
|
+
}
|
|
84
84
|
}`
|
|
85
85
|
},
|
|
86
86
|
}
|
|
@@ -13,7 +13,9 @@ export declare enum ReservationStatus {
|
|
|
13
13
|
confirmed = "confirmed",
|
|
14
14
|
cancelled = "cancelled",
|
|
15
15
|
completed = "completed",
|
|
16
|
-
noShow = "noShow"
|
|
16
|
+
noShow = "noShow",
|
|
17
|
+
arrived = "arrived",
|
|
18
|
+
partiallyArrived = "partiallyArrived"
|
|
17
19
|
}
|
|
18
20
|
export type Reservation = {
|
|
19
21
|
id: number;
|
|
@@ -15,4 +15,6 @@ var ReservationStatus;
|
|
|
15
15
|
ReservationStatus["cancelled"] = "cancelled";
|
|
16
16
|
ReservationStatus["completed"] = "completed";
|
|
17
17
|
ReservationStatus["noShow"] = "noShow";
|
|
18
|
+
ReservationStatus["arrived"] = "arrived";
|
|
19
|
+
ReservationStatus["partiallyArrived"] = "partiallyArrived";
|
|
18
20
|
})(ReservationStatus || (exports.ReservationStatus = ReservationStatus = {}));
|