jourycms-sdk 1.1.27 → 1.1.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jourycms-sdk",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "Sdk for Joury CMS",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -45,12 +45,15 @@ declare module Levelup {
45
45
  | 'file'
46
46
  | 'image'
47
47
  | 'number'
48
+ | 'number_range'
48
49
  | 'radiobox'
49
50
  | 'select'
50
51
  | 'algerian_state'
51
52
  | 'algerian_city'
52
53
  | 'ksa_city'
53
54
  | 'text'
55
+ | 'multiline_text'
56
+ | 'rich_text'
54
57
  | 'time';
55
58
 
56
59
 
@@ -64,12 +67,15 @@ declare module Levelup {
64
67
  T extends 'file' ? FileField.Input<IsMulti> :
65
68
  T extends 'image' ? ImageField.Input<IsMulti> :
66
69
  T extends 'number' ? NumberField.Input :
70
+ T extends 'number_range' ? NumberRangeField.Input :
67
71
  T extends 'radiobox' ? RadioboxField.Input :
68
72
  T extends 'select' ? SelectField.Input<IsMulti> :
69
73
  T extends 'algerian_state' ? SelectField.Intput<IsMulti> :
70
74
  T extends 'algerian_city' ? SelectField.Intput<IsMulti> :
71
75
  T extends 'ksa_city' ? SelectField.Intput<IsMulti> :
72
76
  T extends 'text' ? TextField.Input :
77
+ T extends 'multiline_text' ? MultiLineTextField.Input :
78
+ T extends 'rich_text' ? RichTextField.Input :
73
79
  T extends 'time' ? TimeField.Input :
74
80
  never;
75
81
 
@@ -82,12 +88,15 @@ declare module Levelup {
82
88
  T extends 'file' ? FileField.Output<IsMulti> :
83
89
  T extends 'image' ? ImageField.Output<IsMulti> :
84
90
  T extends 'number' ? NumberField.Output :
91
+ T extends 'number_range' ? NumberRangeField.Output :
85
92
  T extends 'radiobox' ? RadioboxField.Output :
86
93
  T extends 'select' ? SelectField.Output<IsMulti> :
87
94
  T extends 'algerian_state' ? SelectField.Output<IsMulti> :
88
95
  T extends 'algerian_city' ? SelectField.Output<IsMulti> :
89
96
  T extends 'ksa_city' ? SelectField.Output<IsMulti> :
90
97
  T extends 'text' ? TextField.Output :
98
+ T extends 'multiline_text' ? MultiLineTextField.Output :
99
+ T extends 'rich_text' ? RichTextField.Output :
91
100
  T extends 'time' ? TimeField.Output :
92
101
  never;
93
102
 
@@ -103,12 +112,15 @@ declare module Levelup {
103
112
  T extends 'file' ? FileField.Options<IsMulti> :
104
113
  T extends 'image' ? ImageField.Options<IsMulti> :
105
114
  T extends 'number' ? NumberField.Options :
115
+ T extends 'number_range' ? NumberRangeField.Options :
106
116
  T extends 'radiobox' ? RadioboxField.Options :
107
117
  T extends 'select' ? SelectField.Options<IsMulti> :
108
118
  T extends 'algerian_state' ? SelectField.Options<IsMulti> :
109
119
  T extends 'algerian_city' ? SelectField.Options<IsMulti> :
110
120
  T extends 'ksa_city' ? SelectField.Options<IsMulti> :
111
121
  T extends 'text' ? TextField.Options :
122
+ T extends 'multiline_text' ? MultiLineTextField.Options :
123
+ T extends 'rich_text' ? RichTextField.Options :
112
124
  T extends 'time' ? TimeField.Options :
113
125
  never;
114
126
  }
@@ -4,8 +4,12 @@ export * from "./checkbox.custom-field.d.ts";
4
4
  export * from "./date.custom-field.d.ts";
5
5
  export * from "./file.custom-field.d.ts";
6
6
  export * from "./image.custom-field.d.ts";
7
+ export * from "./multiline-text.custom-field.d.ts";
7
8
  export * from "./number.custom-field.d.ts";
9
+ export * from "./number-range.custom-field.d.ts";
10
+ export * from "./radiobox.custom-field.d.ts";
11
+ export * from "./rich-text.custom-field.d.ts";
8
12
  export * from "./select.custom-field.d.ts";
9
13
  export * from "./text.custom-field.d.ts";
10
14
  export * from "./time.custom-field.d.ts";
11
- export * from "./radiobox.custom-field.d.ts";
15
+
@@ -0,0 +1,25 @@
1
+ declare module Levelup {
2
+
3
+ namespace CMS {
4
+ namespace V1 {
5
+ export namespace Content {
6
+ export namespace CustomFields {
7
+ export namespace MultiLineTextField {
8
+
9
+ export type Key = "multiline_text";
10
+
11
+ export type Input = string | null;
12
+
13
+ export type Output = Input;
14
+
15
+ export type Options = BaseFieldOption<Input, false> & {
16
+ min: number;
17
+ max: number;
18
+ lines: number;
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,27 @@
1
+ declare module Levelup {
2
+
3
+ namespace CMS {
4
+ namespace V1 {
5
+ export namespace Content {
6
+ export namespace CustomFields {
7
+ export namespace NumberField {
8
+
9
+ export type Key = "number_range";
10
+
11
+ export type Input = {
12
+ start: number | null;
13
+ end: number | null;
14
+ } | null;
15
+
16
+ export type Output = Input;
17
+
18
+ export type Options = BaseFieldOption<Input, false> & {
19
+ min: number;
20
+ max: number;
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,24 @@
1
+ declare module Levelup {
2
+
3
+ namespace CMS {
4
+ namespace V1 {
5
+ export namespace Content {
6
+ export namespace CustomFields {
7
+ export namespace RichTextField {
8
+
9
+ export type Key = "rich_text";
10
+
11
+ export type Input = string | null;
12
+
13
+ export type Output = Input;
14
+
15
+ export type Options = BaseFieldOption<Input, false> & {
16
+ min: number;
17
+ max: number;
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ declare module Levelup {
2
+ namespace CMS {
3
+ namespace V1 {
4
+ namespace Content {
5
+ export namespace Entity {
6
+ export interface IFormContentSnapshots {
7
+ created_by: Utils.Entity.Snapshots.Auth.User | null;
8
+ }
9
+
10
+ export interface FormContent
11
+ extends Utils.Entity.General.ICreatable,
12
+ Utils.Entity.General.IHasSearchMeta {
13
+ _type: Utils.Common.ID | null;
14
+ _id: Utils.Common.ID;
15
+ slug: string;
16
+ form: Utils.Common.ID;
17
+ data: { [Key: string]: any };
18
+ snapshots: IFormContentSnapshots;
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,33 @@
1
+ declare module Levelup {
2
+ namespace CMS {
3
+ namespace V1 {
4
+ namespace Content {
5
+ export namespace Entity {
6
+ export interface IFromSnapshots {
7
+ created_by: Utils.Entity.Snapshots.Auth.User | null;
8
+ }
9
+
10
+ export interface IFromInsights {
11
+ entry_count?: number;
12
+ }
13
+
14
+ export interface Form
15
+ extends Utils.Entity.General.ICreatable,
16
+ Utils.Entity.General.IHasSearchMeta {
17
+ _id: Utils.Common.ID;
18
+ slug: string;
19
+ name: string;
20
+ description: string;
21
+ description_unformatted: string;
22
+ description_structured: { [Key: string]: any };
23
+ is_published: boolean;
24
+ published_at: Date | null;
25
+ fields: ICustomMetaField[];
26
+
27
+ insights: IFromInsights;
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
@@ -12,6 +12,7 @@ declare module JouryCMS {
12
12
  ac?: ()=>boolean;
13
13
  }[]
14
14
  children: React.ReactNode;
15
+ className?: string;
15
16
  }
16
17
  }
17
18
  }
@@ -10,7 +10,8 @@ declare module JouryCMS {
10
10
  title: string;
11
11
  icon?: Levelup.CMS.V1.UI.IconType;
12
12
  ac?: ()=>boolean;
13
- }[]
13
+ }[];
14
+ className?: string;
14
15
  }
15
16
  }
16
17
  }