@onylab/common-api 1.1.4 → 1.1.6

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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "3r4s3",
3
+ "name": "Mister Pizza",
4
+ "currency": "EUR"
5
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": "87yu4",
3
+ "location_id": "3r4s3-1",
4
+ "name": "Web",
5
+ "created_at": "2020-06-25T11:43:51+02:00",
6
+ "data": {
7
+ "variants": [],
8
+ "categories": [],
9
+ "products": [],
10
+ "options_lists": [],
11
+ "deals": [],
12
+ "discounts": [],
13
+ "charges": []
14
+ }
15
+ }
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "id": "87yu4",
4
+ "name": "Web",
5
+ "created_at": "2020-06-25T11:43:51+02:00"
6
+ },
7
+ {
8
+ "id": "sdm3b",
9
+ "name": "Common menu",
10
+ "created_at": "2020-05-19T13:23:10+02:00"
11
+ }
12
+ ]
@@ -0,0 +1,39 @@
1
+ {
2
+ "id": "jdj9v",
3
+ "customer_list_id": "smpse3",
4
+ "anonymised": false,
5
+ "private_ref": null,
6
+ "email": "jimmy.watson@dummy-mail.org",
7
+ "first_name": "Jimmy",
8
+ "last_name": "Watson",
9
+ "gender": "male",
10
+ "birth_date": null,
11
+ "created_at": "2020-01-18T17:12:02+02:00",
12
+ "company_name": null,
13
+ "phone": "+44123456789",
14
+ "phone_access_code": "8888",
15
+ "address_1": "1 Town Road",
16
+ "address_2": null,
17
+ "postal_code": "N9 0HL",
18
+ "city": "London",
19
+ "state": null,
20
+ "country": "GB",
21
+ "latitude": "45.7571206",
22
+ "longitude": "4.8307575",
23
+ "delivery_notes": null,
24
+ "sms_marketing": false,
25
+ "email_marketing": true,
26
+ "nb_orders": 2,
27
+ "order_total": "28.40 GBP",
28
+ "first_order_date": "2020-01-18T17:15:11+02:00",
29
+ "last_order_date": "2020-01-23T10:13:21+02:00",
30
+ "loyalty_cards": [
31
+ {
32
+ "id": "slp8q",
33
+ "ref": null,
34
+ "name": null,
35
+ "balance": "13.5"
36
+ }
37
+ ],
38
+ "custom_fields": {}
39
+ }
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "id": "apm3s",
4
+ "name": "Online customers",
5
+ "created_at": "2020-06-25T11:43:51+02:00"
6
+ },
7
+ {
8
+ "id": "s7ma5",
9
+ "name": "POS customers",
10
+ "created_at": "2020-05-19T13:23:10+02:00"
11
+ }
12
+ ]
@@ -0,0 +1,75 @@
1
+ [
2
+ {
3
+ "id": "jdj9v",
4
+ "customer_list_id": "smpse3",
5
+ "anonymised": false,
6
+ "private_ref": null,
7
+ "email": "jimmy.watson@dummy-mail.org",
8
+ "first_name": "Jimmy",
9
+ "last_name": "Watson",
10
+ "gender": "male",
11
+ "birth_date": null,
12
+ "created_at": "2020-01-18T17:12:02+02:00",
13
+ "company_name": null,
14
+ "phone": "+44123456789",
15
+ "phone_access_code": "8888",
16
+ "address_1": "1 Town Road",
17
+ "address_2": null,
18
+ "postal_code": "N9 0HL",
19
+ "city": "London",
20
+ "state": null,
21
+ "country": "GB",
22
+ "latitude": "45.7571206",
23
+ "longitude": "4.8307575",
24
+ "delivery_notes": null,
25
+ "sms_marketing": false,
26
+ "email_marketing": true,
27
+ "nb_orders": 2,
28
+ "order_total": "28.40 GBP",
29
+ "first_order_date": "2020-01-18T17:15:11+02:00",
30
+ "last_order_date": "2020-01-23T10:13:21+02:00",
31
+ "loyalty_cards": [
32
+ {
33
+ "id": "slp8q",
34
+ "ref": null,
35
+ "name": null,
36
+ "balance": "13.5"
37
+ }
38
+ ],
39
+ "custom_fields": {}
40
+ },
41
+ {
42
+ "id": "asdf2",
43
+ "customer_list_id": "ag8u4",
44
+ "anonymised": false,
45
+ "email": "charles.moore@dummy-mail.org",
46
+ "first_name": "Charles",
47
+ "last_name": "Moore",
48
+ "phone": "+44123456789",
49
+ "phone_access_code": "8888",
50
+ "address_1": "1 Town Road",
51
+ "address_2": null,
52
+ "postal_code": "N9 0HL",
53
+ "city": "London",
54
+ "state": null,
55
+ "country": "GB",
56
+ "latitude": "45.7571206",
57
+ "longitude": "4.8307575",
58
+ "delivery_notes": null,
59
+ "sms_marketing": false,
60
+ "email_marketing": true,
61
+ "nb_orders": 2,
62
+ "order_total": "28.40 GBP",
63
+ "first_order_date": "2020-01-18T17:15:11+02:00",
64
+ "last_order_date": "2020-01-23T10:13:21+02:00",
65
+ "loyalty_cards": [
66
+ {
67
+ "id": "slp8q",
68
+ "ref": null,
69
+ "name": null,
70
+ "balance": "13.5"
71
+ }
72
+ ],
73
+ "custom_fields": {}
74
+ }
75
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "id": "3r4s3-1",
4
+ "name": "Paris",
5
+ "account": {
6
+ "id": "3r4s3",
7
+ "name": "Bella Pizza",
8
+ "currency": "EUR"
9
+ },
10
+ "preparation_time": 15,
11
+ "order_acceptance": {
12
+ "mode": "normal"
13
+ }
14
+ }
15
+ ]
@@ -0,0 +1,76 @@
1
+ {
2
+ "status": "new",
3
+ "private_ref": "fr:1679f128-4ff6-4a60-9fc2-7fe38af4f84d",
4
+ "service_type": "delivery",
5
+ "service_type_ref": null,
6
+ "expected_time": "2021-11-07T17:17:22Z",
7
+ "customer_notes": "PAS DE COUVERTS",
8
+ "collection_code": "5645",
9
+ "items": [
10
+ {
11
+ "product_name": "LIP15",
12
+ "sku_ref": "LIP15",
13
+ "price": "3.50 EUR",
14
+ "quantity": 1,
15
+ "options": []
16
+ },
17
+ {
18
+ "product_name": "5VANI",
19
+ "sku_ref": "5VANI",
20
+ "price": "6.90 EUR",
21
+ "quantity": 1,
22
+ "options": []
23
+ },
24
+ {
25
+ "product_name": "TSQ2",
26
+ "sku_ref": "TSQ2",
27
+ "price": "13.50 EUR",
28
+ "quantity": 1,
29
+ "options": [
30
+ {
31
+ "option_list_name": "Options",
32
+ "name": "SUPP RACLETTE",
33
+ "ref": "SUPP RACLETTE",
34
+ "price": "1.00 EUR"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "product_name": "SCES",
40
+ "sku_ref": "SCES",
41
+ "price": "10.50 EUR",
42
+ "quantity": 1,
43
+ "options": []
44
+ }
45
+ ],
46
+ "deals": {},
47
+ "discounts": [],
48
+ "charges": [
49
+ {
50
+ "type": "delivery",
51
+ "name": "Delivery charge",
52
+ "ref": null,
53
+ "price": "0.99 EUR"
54
+ }
55
+ ],
56
+ "payments": [
57
+ {
58
+ "type": "online",
59
+ "name": "Paid online",
60
+ "ref": null,
61
+ "amount": "36.39 EUR"
62
+ }
63
+ ],
64
+ "customer": {
65
+ "address_1": "6a Rue du Tire Pesseau, 21000 Dijon, France",
66
+ "city": "Dijon",
67
+ "postal_code": "21000",
68
+ "phone": "+33175858334",
69
+ "delivery_notes": "Phone access code: 151081499",
70
+ "first_name": "Benoit",
71
+ "last_name": "B.",
72
+ "email": "orders@deliveroo.com",
73
+ "latitude": "47.3166297697847",
74
+ "longitude": "5.00251594930887"
75
+ }
76
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": "v6ap7",
3
+ "first_name": "Tom",
4
+ "last_name": "Jones",
5
+ "email": "tom.jones@dummy-mail.org",
6
+ "timezone": {
7
+ "name": "Europe/Paris"
8
+ },
9
+ "locales": [
10
+ "fr-FR",
11
+ "en-US"
12
+ ]
13
+ }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Common API",
4
4
  "main": "dist/common-api.node.min.js",
5
5
  "types": "dist/common-api.d.ts",
6
- "version": "1.1.4",
6
+ "version": "1.1.6",
7
7
  "author": "Paul M.",
8
8
  "license": "NO LICENSE",
9
9
  "engines": {
@@ -37,7 +37,6 @@
37
37
  "cors": "^2.8.5",
38
38
  "emoji-regex": "^10.4.0",
39
39
  "express": "^4.21.1",
40
- "express-session": "^1.18.1",
41
40
  "fast-diff": "^1.3.0",
42
41
  "helmet": "^8.0.0",
43
42
  "html-minifier-terser": "^7.2.0",
@@ -60,7 +59,6 @@
60
59
  "@types/connect-timeout": "^0.0.39",
61
60
  "@types/cors": "^2.8.17",
62
61
  "@types/express": "^5.0.0",
63
- "@types/express-session": "^1.18.0",
64
62
  "@types/glob": "^8.1.0",
65
63
  "@types/lodash": "^4.17.12",
66
64
  "@types/luxon": "^3.4.2",