@passly-nl/data 0.1.0 → 1.0.0-beta.1
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 +5 -5
- package/dist/types/auth.d.ts +47 -0
- package/dist/types/event.d.ts +28 -0
- package/dist/types/finance.d.ts +14 -0
- package/dist/types/general.d.ts +19 -0
- package/dist/types/order.d.ts +7 -0
- package/dist/types/payment.d.ts +11 -0
- package/dist/types/product.d.ts +2 -0
- package/dist/types/publicShop.d.ts +7 -0
- package/dist/types/ticket.d.ts +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# `@
|
|
7
|
+
# `@passly-nl/data`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Full API implementation for Passly.nl.
|
|
10
10
|
|
|
11
11
|
## ⭐️ Prerequisites
|
|
12
12
|
|
|
13
|
-
- Bun >= 1.
|
|
14
|
-
- Node >=
|
|
13
|
+
- Bun >= 1.3.0
|
|
14
|
+
- Node >= 25
|
|
15
15
|
|
|
16
16
|
## 🚀 Getting started
|
|
17
17
|
|
|
18
18
|
1. Run `bun install` in the root of the project.
|
|
19
|
-
2. Run `bun
|
|
19
|
+
2. Run `bun run build` to build the project.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type Claim =
|
|
2
|
+
| 'admin:view'
|
|
3
|
+
| 'auth:login'
|
|
4
|
+
| 'buyers:view'
|
|
5
|
+
| 'events:create'
|
|
6
|
+
| 'events:manage'
|
|
7
|
+
| 'events:publish'
|
|
8
|
+
| 'events:statistics'
|
|
9
|
+
| 'events:unpublish'
|
|
10
|
+
| 'events:view'
|
|
11
|
+
| 'events:tickets:export'
|
|
12
|
+
| 'events:tickets:scan'
|
|
13
|
+
| 'events:tickets:view'
|
|
14
|
+
| 'finance:export'
|
|
15
|
+
| 'finance:view'
|
|
16
|
+
| 'finance:invoices:view'
|
|
17
|
+
| 'merchant:admin'
|
|
18
|
+
| 'merchant:users'
|
|
19
|
+
| 'orders:export'
|
|
20
|
+
| 'orders:view'
|
|
21
|
+
| 'statistics:view'
|
|
22
|
+
| 'tasks:view';
|
|
23
|
+
|
|
24
|
+
export type UserTokenType =
|
|
25
|
+
| 'access_token'
|
|
26
|
+
| 'authorization_code'
|
|
27
|
+
| 'refresh_token'
|
|
28
|
+
| 'session';
|
|
29
|
+
|
|
30
|
+
export type BrowserType =
|
|
31
|
+
| 'brave'
|
|
32
|
+
| 'chrome'
|
|
33
|
+
| 'edge'
|
|
34
|
+
| 'firefox'
|
|
35
|
+
| 'opera'
|
|
36
|
+
| 'safari'
|
|
37
|
+
| 'samsunginternet'
|
|
38
|
+
| 'vivaldi';
|
|
39
|
+
|
|
40
|
+
export type OperatingSystemType =
|
|
41
|
+
| 'ios'
|
|
42
|
+
| 'ipados'
|
|
43
|
+
| 'macos'
|
|
44
|
+
| 'windows'
|
|
45
|
+
| 'linux'
|
|
46
|
+
| 'android'
|
|
47
|
+
| 'chromeos';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type EventStatus =
|
|
2
|
+
| 'active'
|
|
3
|
+
| 'concluded'
|
|
4
|
+
| 'happening'
|
|
5
|
+
| 'in_sale'
|
|
6
|
+
| 'pending';
|
|
7
|
+
|
|
8
|
+
export type ShopElementType =
|
|
9
|
+
| 'button'
|
|
10
|
+
| 'divider'
|
|
11
|
+
| 'heading'
|
|
12
|
+
| 'notice'
|
|
13
|
+
| 'product'
|
|
14
|
+
| 'text';
|
|
15
|
+
|
|
16
|
+
export type ShopFieldRequirement =
|
|
17
|
+
| 'disabled'
|
|
18
|
+
| 'enabled'
|
|
19
|
+
| 'required';
|
|
20
|
+
|
|
21
|
+
export type ShopStatus =
|
|
22
|
+
| 'closed'
|
|
23
|
+
| 'concluded'
|
|
24
|
+
| 'in_sale'
|
|
25
|
+
| 'pending';
|
|
26
|
+
|
|
27
|
+
export type TicketTemplateType =
|
|
28
|
+
| 'default';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type DailyRevenueChart = {
|
|
2
|
+
current: DailyRevenueChartEntry[];
|
|
3
|
+
previous: DailyRevenueChartEntry[];
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type DailyRevenueChartEntry = {
|
|
7
|
+
readonly date: string;
|
|
8
|
+
readonly label: string;
|
|
9
|
+
readonly value: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type InvoiceLineType =
|
|
13
|
+
| 'fee'
|
|
14
|
+
| 'manual';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@passly-nl/data",
|
|
3
3
|
"description": "API implementation for Passly.",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|
|
30
|
-
"provenance":
|
|
30
|
+
"provenance": true
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsgo --noEmit && bun -b build.ts"
|