@memberjunction/ng-file-storage 2.1.5 → 2.2.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.
|
@@ -14,7 +14,7 @@ declare const FileUploadMutationSchema: z.ZodObject<{
|
|
|
14
14
|
CreateFile: z.ZodObject<{
|
|
15
15
|
NameExists: z.ZodBoolean;
|
|
16
16
|
UploadUrl: z.ZodString;
|
|
17
|
-
File: z.ZodObject<{
|
|
17
|
+
File: z.ZodObject<Omit<{
|
|
18
18
|
ID: z.ZodString;
|
|
19
19
|
Name: z.ZodString;
|
|
20
20
|
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,64 +27,64 @@ declare const FileUploadMutationSchema: z.ZodObject<{
|
|
|
27
27
|
__mj_UpdatedAt: z.ZodDate;
|
|
28
28
|
Category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
Provider: z.ZodString;
|
|
30
|
-
}, "
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Provider
|
|
43
|
-
}, {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Provider
|
|
56
|
-
}
|
|
30
|
+
}, "__mj_CreatedAt" | "__mj_UpdatedAt">, "passthrough", z.ZodTypeAny, z.objectOutputType<Omit<{
|
|
31
|
+
ID: z.ZodString;
|
|
32
|
+
Name: z.ZodString;
|
|
33
|
+
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
CategoryID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
ProviderID: z.ZodString;
|
|
36
|
+
ContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
ProviderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
Status: z.ZodString;
|
|
39
|
+
__mj_CreatedAt: z.ZodDate;
|
|
40
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
41
|
+
Category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
Provider: z.ZodString;
|
|
43
|
+
}, "__mj_CreatedAt" | "__mj_UpdatedAt">, z.ZodTypeAny, "passthrough">, z.objectInputType<Omit<{
|
|
44
|
+
ID: z.ZodString;
|
|
45
|
+
Name: z.ZodString;
|
|
46
|
+
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
CategoryID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
ProviderID: z.ZodString;
|
|
49
|
+
ContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
ProviderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
Status: z.ZodString;
|
|
52
|
+
__mj_CreatedAt: z.ZodDate;
|
|
53
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
54
|
+
Category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
Provider: z.ZodString;
|
|
56
|
+
}, "__mj_CreatedAt" | "__mj_UpdatedAt">, z.ZodTypeAny, "passthrough">>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
File: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
CategoryID?: string | undefined;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
ID: string;
|
|
60
|
+
Name: string;
|
|
61
|
+
Status: string;
|
|
62
|
+
ProviderID: string;
|
|
63
|
+
Provider: string;
|
|
64
|
+
Category?: string | null | undefined;
|
|
65
|
+
Description?: string | null | undefined;
|
|
66
|
+
CategoryID?: string | null | undefined;
|
|
67
|
+
ContentType?: string | null | undefined;
|
|
68
|
+
ProviderKey?: string | null | undefined;
|
|
69
|
+
} & {
|
|
70
|
+
[k: string]: unknown;
|
|
71
71
|
};
|
|
72
72
|
NameExists: boolean;
|
|
73
73
|
UploadUrl: string;
|
|
74
74
|
}, {
|
|
75
75
|
File: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
CategoryID?: string | undefined;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
ID: string;
|
|
77
|
+
Name: string;
|
|
78
|
+
Status: string;
|
|
79
|
+
ProviderID: string;
|
|
80
|
+
Provider: string;
|
|
81
|
+
Category?: string | null | undefined;
|
|
82
|
+
Description?: string | null | undefined;
|
|
83
|
+
CategoryID?: string | null | undefined;
|
|
84
|
+
ContentType?: string | null | undefined;
|
|
85
|
+
ProviderKey?: string | null | undefined;
|
|
86
|
+
} & {
|
|
87
|
+
[k: string]: unknown;
|
|
88
88
|
};
|
|
89
89
|
NameExists: boolean;
|
|
90
90
|
UploadUrl: string;
|
|
@@ -92,18 +92,18 @@ declare const FileUploadMutationSchema: z.ZodObject<{
|
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
CreateFile: {
|
|
94
94
|
File: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
CategoryID?: string | undefined;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
95
|
+
ID: string;
|
|
96
|
+
Name: string;
|
|
97
|
+
Status: string;
|
|
98
|
+
ProviderID: string;
|
|
99
|
+
Provider: string;
|
|
100
|
+
Category?: string | null | undefined;
|
|
101
|
+
Description?: string | null | undefined;
|
|
102
|
+
CategoryID?: string | null | undefined;
|
|
103
|
+
ContentType?: string | null | undefined;
|
|
104
|
+
ProviderKey?: string | null | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
[k: string]: unknown;
|
|
107
107
|
};
|
|
108
108
|
NameExists: boolean;
|
|
109
109
|
UploadUrl: string;
|
|
@@ -111,18 +111,18 @@ declare const FileUploadMutationSchema: z.ZodObject<{
|
|
|
111
111
|
}, {
|
|
112
112
|
CreateFile: {
|
|
113
113
|
File: {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
CategoryID?: string | undefined;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
ID: string;
|
|
115
|
+
Name: string;
|
|
116
|
+
Status: string;
|
|
117
|
+
ProviderID: string;
|
|
118
|
+
Provider: string;
|
|
119
|
+
Category?: string | null | undefined;
|
|
120
|
+
Description?: string | null | undefined;
|
|
121
|
+
CategoryID?: string | null | undefined;
|
|
122
|
+
ContentType?: string | null | undefined;
|
|
123
|
+
ProviderKey?: string | null | undefined;
|
|
124
|
+
} & {
|
|
125
|
+
[k: string]: unknown;
|
|
126
126
|
};
|
|
127
127
|
NameExists: boolean;
|
|
128
128
|
UploadUrl: string;
|
|
@@ -70,7 +70,7 @@ const FileUploadMutationSchema = z.object({
|
|
|
70
70
|
CreateFile: z.object({
|
|
71
71
|
NameExists: z.boolean(),
|
|
72
72
|
UploadUrl: z.string(),
|
|
73
|
-
File: FileSchema,
|
|
73
|
+
File: FileSchema.omit({ __mj_CreatedAt: true, __mj_UpdatedAt: true }).passthrough(),
|
|
74
74
|
}),
|
|
75
75
|
});
|
|
76
76
|
export class FileUploadComponent {
|
|
@@ -153,7 +153,7 @@ export class FileUploadComponent {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
else {
|
|
156
|
-
console.error('The API returned an unexpected result', parsedResult.error);
|
|
156
|
+
console.error('The API returned an unexpected result', parsedResult.error.issues);
|
|
157
157
|
this.fileUpload.emit({ success: false, file });
|
|
158
158
|
}
|
|
159
159
|
file = this.UploadQueue.shift();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-file-storage",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "MemberJunction: Angular components for managing files, and related components.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"@angular/router": "18.0.2"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@memberjunction/core": "2.1
|
|
30
|
-
"@memberjunction/core-entities": "2.1
|
|
31
|
-
"@memberjunction/global": "2.1
|
|
32
|
-
"@memberjunction/graphql-dataprovider": "2.1
|
|
33
|
-
"@memberjunction/ng-container-directives": "2.1
|
|
34
|
-
"@memberjunction/ng-shared": "2.1
|
|
29
|
+
"@memberjunction/core": "2.2.1",
|
|
30
|
+
"@memberjunction/core-entities": "2.2.1",
|
|
31
|
+
"@memberjunction/global": "2.2.1",
|
|
32
|
+
"@memberjunction/graphql-dataprovider": "2.2.1",
|
|
33
|
+
"@memberjunction/ng-container-directives": "2.2.1",
|
|
34
|
+
"@memberjunction/ng-shared": "2.2.1",
|
|
35
35
|
"@progress/kendo-angular-buttons": "16.2.0",
|
|
36
36
|
"@progress/kendo-angular-dialog": "16.2.0",
|
|
37
37
|
"@progress/kendo-angular-dropdowns": "16.2.0",
|