@stacksjs/types 0.44.12 → 0.45.0

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/cli.d.ts CHANGED
@@ -42,7 +42,7 @@ export interface CliOptions {
42
42
  */
43
43
  cwd?: string;
44
44
  /**
45
- * **Loading Animation**
45
+ * **Should show loading animation spinner?**
46
46
  *
47
47
  * Should the command show a loading animation?
48
48
  * Please note, when debug mode is enabled,
@@ -50,7 +50,22 @@ export interface CliOptions {
50
50
  *
51
51
  * @default true
52
52
  */
53
- shouldBeAnimated?: boolean | SpinnerOptions;
53
+ shouldShowSpinner?: boolean | SpinnerOptions;
54
+ /**
55
+ * **Should the command be run inside a shell?**
56
+ *
57
+ * If `true`, runs `command` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe`
58
+ * on Windows. A different shell can be specified as a string. The shell should
59
+ * understand the `-c` switch on UNIX or `/d /s /c` on Windows.
60
+ *
61
+ * We recommend against using this option since it is:
62
+ * - not cross-platform, encouraging shell-specific syntax.
63
+ * - slower, because of the additional shell interpretation.
64
+ * - unsafe, potentially allowing command injection.
65
+ *
66
+ * @default false
67
+ */
68
+ shell?: boolean;
54
69
  }
55
70
  export type { Ora as SpinnerOptions } from 'ora';
56
71
  export type ActionsOption = 'types';
@@ -149,7 +164,7 @@ export declare const enum NpmScript {
149
164
  UpdatePackageManager = "update:package-manager",
150
165
  UpdateNode = "pnpm env use",
151
166
  Lint = "eslint .",
152
- LintFix = "lint:fix",
167
+ LintFix = "eslint . --fix",
153
168
  MakeStack = "make:stack",
154
169
  Test = "vitest --config .stacks/vitest.config.ts",
155
170
  TestUi = "vitest --config .stacks/vitest.config.ts --ui",
@@ -176,6 +191,7 @@ export declare const enum NpmScript {
176
191
  Wip = "wip"
177
192
  }
178
193
  export declare const enum Action {
194
+ Bump = "bump",
179
195
  Release = "release",
180
196
  Prepublish = "prepublish",
181
197
  BuildStacks = "build-stacks",
@@ -183,9 +199,14 @@ export declare const enum Action {
183
199
  BuildVueComponentLib = "build-vue-component-lib",
184
200
  BuildWebComponentLib = "build-web-component-lib",
185
201
  BuildCli = "build-cli",
202
+ BuildCore = "build-core",
186
203
  BuildDocs = "build-docs",
187
204
  BuildFunctionLib = "build-function-lib",
188
- Fresh = "fresh"
205
+ Fresh = "fresh",
206
+ GeneratePackageJsons = "generate-package-jsons",
207
+ Lint = "lint",
208
+ LintFix = "lint-fix",
209
+ FixLintIssues = "fix-lint-issues"
189
210
  }
190
211
  export type { CAC as CLI } from 'cac';
191
212
  export type { ExecaReturnValue as CommandResult } from 'execa';
package/dist/cli.mjs CHANGED
@@ -19,7 +19,7 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
19
19
  NpmScript2["UpdatePackageManager"] = "update:package-manager";
20
20
  NpmScript2["UpdateNode"] = "pnpm env use";
21
21
  NpmScript2["Lint"] = "eslint .";
22
- NpmScript2["LintFix"] = "lint:fix";
22
+ NpmScript2["LintFix"] = "eslint . --fix";
23
23
  NpmScript2["MakeStack"] = "make:stack";
24
24
  NpmScript2["Test"] = "vitest --config .stacks/vitest.config.ts";
25
25
  NpmScript2["TestUi"] = "vitest --config .stacks/vitest.config.ts --ui";
@@ -47,6 +47,7 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
47
47
  return NpmScript2;
48
48
  })(NpmScript || {});
49
49
  export var Action = /* @__PURE__ */ ((Action2) => {
50
+ Action2["Bump"] = "bump";
50
51
  Action2["Release"] = "release";
51
52
  Action2["Prepublish"] = "prepublish";
52
53
  Action2["BuildStacks"] = "build-stacks";
@@ -54,8 +55,13 @@ export var Action = /* @__PURE__ */ ((Action2) => {
54
55
  Action2["BuildVueComponentLib"] = "build-vue-component-lib";
55
56
  Action2["BuildWebComponentLib"] = "build-web-component-lib";
56
57
  Action2["BuildCli"] = "build-cli";
58
+ Action2["BuildCore"] = "build-core";
57
59
  Action2["BuildDocs"] = "build-docs";
58
60
  Action2["BuildFunctionLib"] = "build-function-lib";
59
61
  Action2["Fresh"] = "fresh";
62
+ Action2["GeneratePackageJsons"] = "generate-package-jsons";
63
+ Action2["Lint"] = "lint";
64
+ Action2["LintFix"] = "lint-fix";
65
+ Action2["FixLintIssues"] = "fix-lint-issues";
60
66
  return Action2;
61
67
  })(Action || {});
@@ -1,5 +1,145 @@
1
1
  import type { IChatOptions, IEmailOptions, ISendMessageSuccessResponse, ISmsOptions } from '@novu/stateless';
2
+ export interface NotificationOptions {
3
+ driver?: string;
4
+ novu: {
5
+ key: string;
6
+ };
7
+ email: {
8
+ sendgrid: {
9
+ key: string;
10
+ from: string;
11
+ senderName: string;
12
+ };
13
+ emailjs: {
14
+ from: string;
15
+ host: string;
16
+ user: string;
17
+ password: string;
18
+ port: number;
19
+ secure: boolean;
20
+ };
21
+ mailgun: {
22
+ key: string;
23
+ domain: string;
24
+ username: string;
25
+ from: string;
26
+ };
27
+ mailjet: {
28
+ key: string;
29
+ secret: string;
30
+ from: string;
31
+ };
32
+ mandrill: {
33
+ key: string;
34
+ from: string;
35
+ };
36
+ netcore: {
37
+ key: string;
38
+ from: string;
39
+ };
40
+ nodemailer: {
41
+ from: string;
42
+ host: string;
43
+ user: string;
44
+ password: string;
45
+ port: number;
46
+ secure: boolean;
47
+ };
48
+ postmark: {
49
+ key: string;
50
+ from: string;
51
+ };
52
+ ses: {
53
+ region: string;
54
+ key: string;
55
+ secret: string;
56
+ from: string;
57
+ };
58
+ };
59
+ sms: {
60
+ twilio: {
61
+ sid: string;
62
+ authToken: string;
63
+ from: string;
64
+ to: string;
65
+ };
66
+ nexmo: {
67
+ key: string;
68
+ secret: string;
69
+ from: string;
70
+ };
71
+ gupshup: {
72
+ user: string;
73
+ password: string;
74
+ };
75
+ plivo: {
76
+ sid: string;
77
+ authToken: string;
78
+ from: string;
79
+ };
80
+ sms77: {
81
+ key: string;
82
+ from: string;
83
+ };
84
+ sns: {
85
+ region: string;
86
+ key: string;
87
+ secret: string;
88
+ };
89
+ telnyx: {
90
+ key: string;
91
+ messageProfileId: string;
92
+ from: string;
93
+ };
94
+ termii: {
95
+ key: string;
96
+ from: string;
97
+ };
98
+ };
99
+ chat: {
100
+ slack: {
101
+ appId: string;
102
+ clientId: string;
103
+ secret: string;
104
+ };
105
+ };
106
+ }
2
107
  export type EmailOptions = IEmailOptions;
3
108
  export type SendMessageSuccessResponse = ISendMessageSuccessResponse;
4
109
  export type ChatOptions = IChatOptions;
5
110
  export type SmsOptions = ISmsOptions;
111
+ export interface FCMPushNotificationOptions {
112
+ eventName: string;
113
+ to: {
114
+ subscriberId: string;
115
+ };
116
+ payload: {
117
+ deviceTokens: Array<string>;
118
+ badge: boolean;
119
+ clickAction: string;
120
+ color: string;
121
+ icon: string;
122
+ sound: string;
123
+ };
124
+ }
125
+ export interface ExpoPushNotificationOptions {
126
+ eventName: string;
127
+ to: {
128
+ subscriberId: string;
129
+ };
130
+ payload: {
131
+ to: string[];
132
+ data: Object;
133
+ title: string;
134
+ body: string;
135
+ ttl: number;
136
+ expiration: number;
137
+ priority: 'default' | 'normal' | 'high';
138
+ subtitle: string;
139
+ sound: 'default' | null;
140
+ badge: number;
141
+ channelId: string;
142
+ categoryId: string;
143
+ mutableContent: boolean;
144
+ };
145
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.44.12",
4
+ "version": "0.45.0",
5
5
  "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
@@ -47,7 +47,7 @@
47
47
  "@types/fs-extra": "^9.0.13",
48
48
  "@types/markdown-it-link-attributes": "^3.0.1",
49
49
  "@types/minimatch": "^5.1.2",
50
- "@types/node": "^18.11.15",
50
+ "@types/node": "^18.11.17",
51
51
  "@types/nprogress": "^0.2.0",
52
52
  "@types/pluralize": "^0.0.29",
53
53
  "@types/prompts": "^2.4.2",
@@ -57,7 +57,7 @@
57
57
  "typescript": "^4.9.4",
58
58
  "unplugin-auto-import": "^0.12.1",
59
59
  "unplugin-vue-components": "^0.22.12",
60
- "vite-plugin-inspect": "^0.7.10",
60
+ "vite-plugin-inspect": "^0.7.11",
61
61
  "vite-plugin-vue-layouts": "^0.7.0",
62
62
  "vite-ssg": "^0.22.1",
63
63
  "vitepress": "1.0.0-alpha.32"