shred-api-client 2.3.3-rc.0 → 2.3.4
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/index.d.mts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +19 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -619,6 +619,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
619
619
|
facebookLink: z.ZodOptional<z.ZodString>;
|
|
620
620
|
isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
621
621
|
instagramLink: z.ZodOptional<z.ZodString>;
|
|
622
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
622
623
|
bRoll: z.ZodOptional<z.ZodBoolean>;
|
|
623
624
|
logo: z.ZodOptional<z.ZodString>;
|
|
624
625
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -627,6 +628,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
627
628
|
facebookLink?: string | undefined;
|
|
628
629
|
isFeedbackEnabled?: boolean | undefined;
|
|
629
630
|
instagramLink?: string | undefined;
|
|
631
|
+
industries?: string[] | undefined;
|
|
630
632
|
bRoll?: boolean | undefined;
|
|
631
633
|
logo?: string | undefined;
|
|
632
634
|
}, {
|
|
@@ -635,6 +637,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
635
637
|
facebookLink?: string | undefined;
|
|
636
638
|
isFeedbackEnabled?: boolean | undefined;
|
|
637
639
|
instagramLink?: string | undefined;
|
|
640
|
+
industries?: string[] | undefined;
|
|
638
641
|
bRoll?: boolean | undefined;
|
|
639
642
|
logo?: string | undefined;
|
|
640
643
|
}>;
|
|
@@ -651,6 +654,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
651
654
|
facebookLink: z.ZodOptional<z.ZodString>;
|
|
652
655
|
isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
653
656
|
instagramLink: z.ZodOptional<z.ZodString>;
|
|
657
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
654
658
|
bRoll: z.ZodOptional<z.ZodBoolean>;
|
|
655
659
|
logo: z.ZodOptional<z.ZodString>;
|
|
656
660
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -659,6 +663,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
659
663
|
facebookLink?: string | undefined;
|
|
660
664
|
isFeedbackEnabled?: boolean | undefined;
|
|
661
665
|
instagramLink?: string | undefined;
|
|
666
|
+
industries?: string[] | undefined;
|
|
662
667
|
bRoll?: boolean | undefined;
|
|
663
668
|
logo?: string | undefined;
|
|
664
669
|
}, {
|
|
@@ -667,6 +672,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
667
672
|
facebookLink?: string | undefined;
|
|
668
673
|
isFeedbackEnabled?: boolean | undefined;
|
|
669
674
|
instagramLink?: string | undefined;
|
|
675
|
+
industries?: string[] | undefined;
|
|
670
676
|
bRoll?: boolean | undefined;
|
|
671
677
|
logo?: string | undefined;
|
|
672
678
|
}>>;
|
|
@@ -690,6 +696,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
690
696
|
facebookLink?: string | undefined;
|
|
691
697
|
isFeedbackEnabled?: boolean | undefined;
|
|
692
698
|
instagramLink?: string | undefined;
|
|
699
|
+
industries?: string[] | undefined;
|
|
693
700
|
bRoll?: boolean | undefined;
|
|
694
701
|
logo?: string | undefined;
|
|
695
702
|
} | undefined;
|
|
@@ -712,6 +719,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
712
719
|
facebookLink?: string | undefined;
|
|
713
720
|
isFeedbackEnabled?: boolean | undefined;
|
|
714
721
|
instagramLink?: string | undefined;
|
|
722
|
+
industries?: string[] | undefined;
|
|
715
723
|
bRoll?: boolean | undefined;
|
|
716
724
|
logo?: string | undefined;
|
|
717
725
|
} | undefined;
|
|
@@ -724,6 +732,13 @@ declare const UserSchema: z.ZodObject<{
|
|
|
724
732
|
type User = z.infer<typeof UserSchema>;
|
|
725
733
|
type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
|
|
726
734
|
type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
|
|
735
|
+
type Create = Pick<User, "name" | "email"> & {
|
|
736
|
+
password?: string;
|
|
737
|
+
passwordConfirmation?: string;
|
|
738
|
+
invitationCode?: string;
|
|
739
|
+
role?: Role;
|
|
740
|
+
industries?: string[];
|
|
741
|
+
};
|
|
727
742
|
|
|
728
743
|
type QueryOrderBy<T> = {
|
|
729
744
|
field: keyof T | "modified";
|
|
@@ -771,7 +786,7 @@ interface IAPI$8 {
|
|
|
771
786
|
getIntegrationToken: (ctx: Context) => Promise<string | null>;
|
|
772
787
|
createIntegrationToken: (ctx: Context) => Promise<string>;
|
|
773
788
|
search: (ctx: Context, query: QueryOptions<User>) => Promise<APIResponse<User>>;
|
|
774
|
-
createUser: (
|
|
789
|
+
createUser: (data: Create) => Promise<User>;
|
|
775
790
|
}
|
|
776
791
|
declare const Endpoints$7: {
|
|
777
792
|
ChangeEmail: {
|
|
@@ -840,6 +855,7 @@ declare const Endpoints$7: {
|
|
|
840
855
|
};
|
|
841
856
|
};
|
|
842
857
|
|
|
858
|
+
type index$9_Create = Create;
|
|
843
859
|
type index$9_Role = Role;
|
|
844
860
|
declare const index$9_Role: typeof Role;
|
|
845
861
|
type index$9_System = System;
|
|
@@ -847,7 +863,7 @@ declare const index$9_System: typeof System;
|
|
|
847
863
|
type index$9_Update = Update;
|
|
848
864
|
declare const index$9_UserSchema: typeof UserSchema;
|
|
849
865
|
declare namespace index$9 {
|
|
850
|
-
export { Endpoints$7 as Endpoints, type User as Entity, type IAPI$8 as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$9_Role as Role, index$9_System as System, type index$9_Update as Update, index$9_UserSchema as UserSchema };
|
|
866
|
+
export { type index$9_Create as Create, Endpoints$7 as Endpoints, type User as Entity, type IAPI$8 as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$9_Role as Role, index$9_System as System, type index$9_Update as Update, index$9_UserSchema as UserSchema };
|
|
851
867
|
}
|
|
852
868
|
|
|
853
869
|
declare const PreferencesSchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -619,6 +619,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
619
619
|
facebookLink: z.ZodOptional<z.ZodString>;
|
|
620
620
|
isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
621
621
|
instagramLink: z.ZodOptional<z.ZodString>;
|
|
622
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
622
623
|
bRoll: z.ZodOptional<z.ZodBoolean>;
|
|
623
624
|
logo: z.ZodOptional<z.ZodString>;
|
|
624
625
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -627,6 +628,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
627
628
|
facebookLink?: string | undefined;
|
|
628
629
|
isFeedbackEnabled?: boolean | undefined;
|
|
629
630
|
instagramLink?: string | undefined;
|
|
631
|
+
industries?: string[] | undefined;
|
|
630
632
|
bRoll?: boolean | undefined;
|
|
631
633
|
logo?: string | undefined;
|
|
632
634
|
}, {
|
|
@@ -635,6 +637,7 @@ declare const PreferencesSchema$1: z.ZodObject<{
|
|
|
635
637
|
facebookLink?: string | undefined;
|
|
636
638
|
isFeedbackEnabled?: boolean | undefined;
|
|
637
639
|
instagramLink?: string | undefined;
|
|
640
|
+
industries?: string[] | undefined;
|
|
638
641
|
bRoll?: boolean | undefined;
|
|
639
642
|
logo?: string | undefined;
|
|
640
643
|
}>;
|
|
@@ -651,6 +654,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
651
654
|
facebookLink: z.ZodOptional<z.ZodString>;
|
|
652
655
|
isFeedbackEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
653
656
|
instagramLink: z.ZodOptional<z.ZodString>;
|
|
657
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
654
658
|
bRoll: z.ZodOptional<z.ZodBoolean>;
|
|
655
659
|
logo: z.ZodOptional<z.ZodString>;
|
|
656
660
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -659,6 +663,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
659
663
|
facebookLink?: string | undefined;
|
|
660
664
|
isFeedbackEnabled?: boolean | undefined;
|
|
661
665
|
instagramLink?: string | undefined;
|
|
666
|
+
industries?: string[] | undefined;
|
|
662
667
|
bRoll?: boolean | undefined;
|
|
663
668
|
logo?: string | undefined;
|
|
664
669
|
}, {
|
|
@@ -667,6 +672,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
667
672
|
facebookLink?: string | undefined;
|
|
668
673
|
isFeedbackEnabled?: boolean | undefined;
|
|
669
674
|
instagramLink?: string | undefined;
|
|
675
|
+
industries?: string[] | undefined;
|
|
670
676
|
bRoll?: boolean | undefined;
|
|
671
677
|
logo?: string | undefined;
|
|
672
678
|
}>>;
|
|
@@ -690,6 +696,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
690
696
|
facebookLink?: string | undefined;
|
|
691
697
|
isFeedbackEnabled?: boolean | undefined;
|
|
692
698
|
instagramLink?: string | undefined;
|
|
699
|
+
industries?: string[] | undefined;
|
|
693
700
|
bRoll?: boolean | undefined;
|
|
694
701
|
logo?: string | undefined;
|
|
695
702
|
} | undefined;
|
|
@@ -712,6 +719,7 @@ declare const UserSchema: z.ZodObject<{
|
|
|
712
719
|
facebookLink?: string | undefined;
|
|
713
720
|
isFeedbackEnabled?: boolean | undefined;
|
|
714
721
|
instagramLink?: string | undefined;
|
|
722
|
+
industries?: string[] | undefined;
|
|
715
723
|
bRoll?: boolean | undefined;
|
|
716
724
|
logo?: string | undefined;
|
|
717
725
|
} | undefined;
|
|
@@ -724,6 +732,13 @@ declare const UserSchema: z.ZodObject<{
|
|
|
724
732
|
type User = z.infer<typeof UserSchema>;
|
|
725
733
|
type Preferences$1 = z.infer<typeof PreferencesSchema$1>;
|
|
726
734
|
type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
|
|
735
|
+
type Create = Pick<User, "name" | "email"> & {
|
|
736
|
+
password?: string;
|
|
737
|
+
passwordConfirmation?: string;
|
|
738
|
+
invitationCode?: string;
|
|
739
|
+
role?: Role;
|
|
740
|
+
industries?: string[];
|
|
741
|
+
};
|
|
727
742
|
|
|
728
743
|
type QueryOrderBy<T> = {
|
|
729
744
|
field: keyof T | "modified";
|
|
@@ -771,7 +786,7 @@ interface IAPI$8 {
|
|
|
771
786
|
getIntegrationToken: (ctx: Context) => Promise<string | null>;
|
|
772
787
|
createIntegrationToken: (ctx: Context) => Promise<string>;
|
|
773
788
|
search: (ctx: Context, query: QueryOptions<User>) => Promise<APIResponse<User>>;
|
|
774
|
-
createUser: (
|
|
789
|
+
createUser: (data: Create) => Promise<User>;
|
|
775
790
|
}
|
|
776
791
|
declare const Endpoints$7: {
|
|
777
792
|
ChangeEmail: {
|
|
@@ -840,6 +855,7 @@ declare const Endpoints$7: {
|
|
|
840
855
|
};
|
|
841
856
|
};
|
|
842
857
|
|
|
858
|
+
type index$9_Create = Create;
|
|
843
859
|
type index$9_Role = Role;
|
|
844
860
|
declare const index$9_Role: typeof Role;
|
|
845
861
|
type index$9_System = System;
|
|
@@ -847,7 +863,7 @@ declare const index$9_System: typeof System;
|
|
|
847
863
|
type index$9_Update = Update;
|
|
848
864
|
declare const index$9_UserSchema: typeof UserSchema;
|
|
849
865
|
declare namespace index$9 {
|
|
850
|
-
export { Endpoints$7 as Endpoints, type User as Entity, type IAPI$8 as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$9_Role as Role, index$9_System as System, type index$9_Update as Update, index$9_UserSchema as UserSchema };
|
|
866
|
+
export { type index$9_Create as Create, Endpoints$7 as Endpoints, type User as Entity, type IAPI$8 as IAPI, type Preferences$1 as Preferences, PreferencesSchema$1 as PreferencesSchema, index$9_Role as Role, index$9_System as System, type index$9_Update as Update, index$9_UserSchema as UserSchema };
|
|
851
867
|
}
|
|
852
868
|
|
|
853
869
|
declare const PreferencesSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -782,20 +782,13 @@ var UserAPI = class {
|
|
|
782
782
|
);
|
|
783
783
|
return data.token;
|
|
784
784
|
}
|
|
785
|
-
async createUser(
|
|
785
|
+
async createUser(create) {
|
|
786
786
|
const endpointData = user_exports.Endpoints.CreateUser;
|
|
787
787
|
const data = await this.clientHTTP.makeRequest(
|
|
788
788
|
this.env,
|
|
789
789
|
endpointData.uri,
|
|
790
790
|
endpointData.method,
|
|
791
|
-
|
|
792
|
-
email,
|
|
793
|
-
name,
|
|
794
|
-
password,
|
|
795
|
-
passwordConfirmation,
|
|
796
|
-
profession,
|
|
797
|
-
invitationCode
|
|
798
|
-
},
|
|
791
|
+
create,
|
|
799
792
|
null
|
|
800
793
|
);
|
|
801
794
|
return data;
|
|
@@ -1907,6 +1900,7 @@ var PreferencesSchema2 = import_zod10.z.object({
|
|
|
1907
1900
|
facebookLink: import_zod10.z.string().optional(),
|
|
1908
1901
|
isFeedbackEnabled: import_zod10.z.boolean().default(true).optional(),
|
|
1909
1902
|
instagramLink: import_zod10.z.string().optional(),
|
|
1903
|
+
industries: import_zod10.z.array(import_zod10.z.string()).optional(),
|
|
1910
1904
|
bRoll: import_zod10.z.boolean().optional(),
|
|
1911
1905
|
logo: import_zod10.z.string().optional()
|
|
1912
1906
|
});
|
|
@@ -2044,4 +2038,20 @@ var core_exports = {};
|
|
|
2044
2038
|
|
|
2045
2039
|
// src/index.ts
|
|
2046
2040
|
var index_default = ShredAPI;
|
|
2041
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2042
|
+
0 && (module.exports = {
|
|
2043
|
+
Asset,
|
|
2044
|
+
Core,
|
|
2045
|
+
Email,
|
|
2046
|
+
Exceptions,
|
|
2047
|
+
Goal,
|
|
2048
|
+
Note,
|
|
2049
|
+
Notification,
|
|
2050
|
+
Project,
|
|
2051
|
+
Prompt,
|
|
2052
|
+
Subscription,
|
|
2053
|
+
Tenant,
|
|
2054
|
+
Track,
|
|
2055
|
+
User
|
|
2056
|
+
});
|
|
2047
2057
|
//# sourceMappingURL=index.js.map
|