@progress/sitefinity-webservices-sdk 1.1.15 → 2.0.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.
Files changed (231) hide show
  1. package/README.md +84 -51
  2. package/esm/chunks/chunk-2ID24RPE.mjs +179 -0
  3. package/esm/chunks/chunk-2ID24RPE.mjs.map +7 -0
  4. package/esm/chunks/chunk-AHDZ2CWQ.mjs +93 -0
  5. package/esm/chunks/chunk-AHDZ2CWQ.mjs.map +7 -0
  6. package/esm/chunks/chunk-BFLQBM7R.mjs +136 -0
  7. package/esm/chunks/chunk-BFLQBM7R.mjs.map +7 -0
  8. package/esm/chunks/chunk-CMGV26CS.mjs +66 -0
  9. package/esm/chunks/chunk-CMGV26CS.mjs.map +7 -0
  10. package/esm/chunks/chunk-DHWDJAGV.mjs +180 -0
  11. package/esm/chunks/chunk-DHWDJAGV.mjs.map +7 -0
  12. package/esm/chunks/chunk-EH4CERVO.mjs +82 -0
  13. package/esm/chunks/chunk-EH4CERVO.mjs.map +7 -0
  14. package/esm/chunks/chunk-F4CWOE7M.mjs +57 -0
  15. package/esm/chunks/chunk-F4CWOE7M.mjs.map +7 -0
  16. package/esm/chunks/chunk-FUFBYOIF.mjs +98 -0
  17. package/esm/chunks/chunk-FUFBYOIF.mjs.map +7 -0
  18. package/esm/chunks/chunk-J2B7UDVZ.mjs +132 -0
  19. package/esm/chunks/chunk-J2B7UDVZ.mjs.map +7 -0
  20. package/esm/chunks/chunk-L3IMDFA5.mjs +1 -0
  21. package/esm/chunks/chunk-L3IMDFA5.mjs.map +7 -0
  22. package/esm/chunks/chunk-NNYY2VBC.mjs +383 -0
  23. package/esm/chunks/chunk-NNYY2VBC.mjs.map +7 -0
  24. package/esm/chunks/chunk-PI55MBSL.mjs +256 -0
  25. package/esm/chunks/chunk-PI55MBSL.mjs.map +7 -0
  26. package/esm/chunks/chunk-PXPK2IV6.mjs +568 -0
  27. package/esm/chunks/chunk-PXPK2IV6.mjs.map +7 -0
  28. package/esm/chunks/chunk-QPSEKUOI.mjs +35 -0
  29. package/esm/chunks/chunk-QPSEKUOI.mjs.map +7 -0
  30. package/esm/chunks/chunk-RQAAYOY6.mjs +72 -0
  31. package/esm/chunks/chunk-RQAAYOY6.mjs.map +7 -0
  32. package/esm/chunks/chunk-TTVNTTW5.mjs +145 -0
  33. package/esm/chunks/chunk-TTVNTTW5.mjs.map +7 -0
  34. package/esm/chunks/chunk-VLDX2FH2.mjs +235 -0
  35. package/esm/chunks/chunk-VLDX2FH2.mjs.map +7 -0
  36. package/esm/chunks/chunk-VWT2RJET.mjs +102 -0
  37. package/esm/chunks/chunk-VWT2RJET.mjs.map +7 -0
  38. package/esm/chunks/chunk-W2OWM3L7.mjs +19 -0
  39. package/esm/chunks/chunk-W2OWM3L7.mjs.map +7 -0
  40. package/esm/chunks/chunk-WX5J7F5D.mjs +43 -0
  41. package/esm/chunks/chunk-WX5J7F5D.mjs.map +7 -0
  42. package/esm/chunks/chunk-YB2LMPUX.mjs +54 -0
  43. package/esm/chunks/chunk-YB2LMPUX.mjs.map +7 -0
  44. package/package.json +67 -36
  45. package/sitefinity-webservices-sdk.cjs +2761 -0
  46. package/sitefinity-webservices-sdk.cjs.map +7 -0
  47. package/sitefinity-webservices-sdk.d.mts +1 -0
  48. package/{dist/sitefinity-webservices-sdk.d.ts → sitefinity-webservices-sdk.d.ts} +6 -0
  49. package/sitefinity-webservices-sdk.global.d.ts +5 -0
  50. package/sitefinity-webservices-sdk.js +2764 -0
  51. package/sitefinity-webservices-sdk.js.map +7 -0
  52. package/sitefinity-webservices-sdk.min.js +3 -0
  53. package/sitefinity-webservices-sdk.mjs +124 -0
  54. package/sitefinity-webservices-sdk.mjs.map +7 -0
  55. package/src/BlobBuilder.d.ts +12 -0
  56. package/src/Data.d.ts +259 -0
  57. package/src/Expression.d.ts +37 -0
  58. package/src/OrderProperty.d.ts +24 -0
  59. package/src/Query.d.ts +104 -0
  60. package/src/QueryBase.d.ts +40 -0
  61. package/src/QueryBuilder.d.ts +29 -0
  62. package/src/Requests/BatchRequest.d.ts +174 -0
  63. package/src/Requests/ExecutableRequest.d.ts +43 -0
  64. package/src/Requests/Request.d.ts +225 -0
  65. package/src/Requests/RequestBase.d.ts +58 -0
  66. package/{dist/src → src}/Requests/RequestFactory.d.ts +24 -2
  67. package/src/Sitefinity.d.ts +141 -0
  68. package/src/Transport/FetchTransport.d.ts +17 -0
  69. package/src/Transport/HttpTransport.d.ts +69 -0
  70. package/src/Transport/XhrTransport.d.ts +8 -0
  71. package/src/WhereQuery.d.ts +88 -0
  72. package/src/chunk-upload/chunk-upload.sdk.d.ts +305 -0
  73. package/src/chunk-upload/chunked-file-upload.utilities.d.ts +58 -0
  74. package/{dist/src → src}/constants.d.ts +21 -0
  75. package/src/utils.d.ts +103 -0
  76. package/.editorconfig +0 -29
  77. package/.eslintignore +0 -4
  78. package/.eslintrc.js +0 -40
  79. package/config/helpers.ts +0 -8
  80. package/config/webpack.common.ts +0 -39
  81. package/config/webpack.dev.ts +0 -37
  82. package/config/webpack.prod.ts +0 -17
  83. package/dist/docs/.nojekyll +0 -1
  84. package/dist/docs/assets/highlight.css +0 -71
  85. package/dist/docs/assets/main.js +0 -58
  86. package/dist/docs/assets/search.js +0 -1
  87. package/dist/docs/assets/style.css +0 -1280
  88. package/dist/docs/classes/BlobBuilder.BlobBuilder.html +0 -137
  89. package/dist/docs/classes/Data.Data.html +0 -387
  90. package/dist/docs/classes/Expression.BinaryExpression.html +0 -184
  91. package/dist/docs/classes/Expression.ComplexExpression.html +0 -146
  92. package/dist/docs/classes/Expression.ExpressionBase.html +0 -125
  93. package/dist/docs/classes/OrderProperty.OrderProperty.html +0 -151
  94. package/dist/docs/classes/Query.Query.html +0 -353
  95. package/dist/docs/classes/QueryBase.QueryBase.html +0 -185
  96. package/dist/docs/classes/QueryBuilder.QueryBuilder.html +0 -206
  97. package/dist/docs/classes/Requests_BatchRequest.BatchRequest.html +0 -731
  98. package/dist/docs/classes/Requests_BatchRequest.Transaction.html +0 -332
  99. package/dist/docs/classes/Requests_ExecutableRequest.ExecutableRequest.html +0 -340
  100. package/dist/docs/classes/Requests_Request.CommitChunksRequest.html +0 -303
  101. package/dist/docs/classes/Requests_Request.CreateRelatedRequest.html +0 -310
  102. package/dist/docs/classes/Requests_Request.CreateRequest.html +0 -307
  103. package/dist/docs/classes/Requests_Request.DeleteRelatedByIdRequest.html +0 -309
  104. package/dist/docs/classes/Requests_Request.DeleteRelatedRequest.html +0 -302
  105. package/dist/docs/classes/Requests_Request.DeleteRequest.html +0 -298
  106. package/dist/docs/classes/Requests_Request.GetByIdRequest.html +0 -298
  107. package/dist/docs/classes/Requests_Request.GetRelatedByIdRequest.html +0 -309
  108. package/dist/docs/classes/Requests_Request.GetRelatedRequest.html +0 -302
  109. package/dist/docs/classes/Requests_Request.GetRequest.html +0 -295
  110. package/dist/docs/classes/Requests_Request.UpdateRequest.html +0 -309
  111. package/dist/docs/classes/Requests_Request.UploadChunkRequest.html +0 -359
  112. package/dist/docs/classes/Requests_Request.UploadRequest.html +0 -329
  113. package/dist/docs/classes/Requests_RequestBase.RequestBase.html +0 -275
  114. package/dist/docs/classes/Requests_RequestFactory.RequestFactory.html +0 -344
  115. package/dist/docs/classes/Sitefinity.Sitefinity.html +0 -188
  116. package/dist/docs/classes/WhereQuery.WhereQuery.html +0 -436
  117. package/dist/docs/classes/chunk_upload_chunk_upload_sdk.ChunkUploadSdk.html +0 -231
  118. package/dist/docs/classes/chunk_upload_chunked_file_upload_utilities.ChunkedFileUploadUtilities.html +0 -131
  119. package/dist/docs/classes/utils.utils.html +0 -303
  120. package/dist/docs/index.html +0 -129
  121. package/dist/docs/interfaces/Data.CreateRelatedRequestOptions.html +0 -155
  122. package/dist/docs/interfaces/Data.CreateRequestOptions.html +0 -153
  123. package/dist/docs/interfaces/Data.OperationsRequestOptions.html +0 -145
  124. package/dist/docs/interfaces/Data.PropertyRequestOptions.html +0 -149
  125. package/dist/docs/interfaces/Data.RequestOptionsBase.html +0 -136
  126. package/dist/docs/interfaces/Data.SingleRelatedItemRequestOptions.html +0 -155
  127. package/dist/docs/interfaces/Data.UpdateRequestOptions.html +0 -155
  128. package/dist/docs/interfaces/Data.UploadRequestOptions.html +0 -169
  129. package/dist/docs/interfaces/Requests_BatchRequest.BatchCreateRelatedRequestOptions.html +0 -161
  130. package/dist/docs/interfaces/Requests_BatchRequest.BatchCreateRequestOptions.html +0 -153
  131. package/dist/docs/interfaces/Requests_BatchRequest.BatchPropertyRequestOptions.html +0 -153
  132. package/dist/docs/interfaces/Requests_BatchRequest.BatchRequestOptionsBase.html +0 -145
  133. package/dist/docs/interfaces/Requests_BatchRequest.BatchRequestOptionsExtended.html +0 -153
  134. package/dist/docs/interfaces/Requests_BatchRequest.BatchSingleItemRequestOptions.html +0 -145
  135. package/dist/docs/interfaces/Requests_BatchRequest.BatchSingleRelatedItemRequestOptions.html +0 -161
  136. package/dist/docs/interfaces/Requests_BatchRequest.BatchUpdateRequestOptions.html +0 -161
  137. package/dist/docs/interfaces/Requests_ExecutableRequest.ResponseHandlers.html +0 -98
  138. package/dist/docs/interfaces/Requests_Request.CommitChunksRequestOptionsExtended.html +0 -215
  139. package/dist/docs/interfaces/Requests_Request.PostRequestOptionsExtended.html +0 -159
  140. package/dist/docs/interfaces/Requests_Request.PutRequestOptionsExtended.html +0 -161
  141. package/dist/docs/interfaces/Requests_Request.RelatedByIdRequestOptionsExtended.html +0 -169
  142. package/dist/docs/interfaces/Requests_Request.RelatedRequestOptionsExtended.html +0 -163
  143. package/dist/docs/interfaces/Requests_Request.UploadChunkRequestOptionsExtended.html +0 -217
  144. package/dist/docs/interfaces/Requests_Request.UploadRequestOptionsExtended.html +0 -180
  145. package/dist/docs/interfaces/Requests_RequestBase.RequestOptionsBaseExtended.html +0 -148
  146. package/dist/docs/interfaces/Sitefinity.SDKOptions.html +0 -128
  147. package/dist/docs/interfaces/Sitefinity.Token.html +0 -94
  148. package/dist/docs/interfaces/Sitefinity.TypeOptions.html +0 -160
  149. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.ChunkUploadInfoDTO.html +0 -159
  150. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.ChunkUploadResult.html +0 -111
  151. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.CleanUpChunksRequestOptions.html +0 -171
  152. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.CommitChunksRequestOptions.html +0 -204
  153. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.GetChunkUploadInfoRequestOptions.html +0 -166
  154. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.UploadChunkRequestOptions.html +0 -206
  155. package/dist/docs/interfaces/chunk_upload_chunked_file_upload_utilities.ChunkFileResult.html +0 -101
  156. package/dist/docs/interfaces/chunk_upload_chunked_file_upload_utilities.FileUploadChunk.html +0 -94
  157. package/dist/docs/modules/BlobBuilder.html +0 -73
  158. package/dist/docs/modules/Data.html +0 -92
  159. package/dist/docs/modules/Expression.html +0 -77
  160. package/dist/docs/modules/OrderProperty.html +0 -73
  161. package/dist/docs/modules/Query.html +0 -73
  162. package/dist/docs/modules/QueryBase.html +0 -73
  163. package/dist/docs/modules/QueryBuilder.html +0 -73
  164. package/dist/docs/modules/Requests_BatchRequest.html +0 -94
  165. package/dist/docs/modules/Requests_ExecutableRequest.html +0 -78
  166. package/dist/docs/modules/Requests_Request.html +0 -114
  167. package/dist/docs/modules/Requests_RequestBase.html +0 -78
  168. package/dist/docs/modules/Requests_RequestFactory.html +0 -73
  169. package/dist/docs/modules/Sitefinity.html +0 -82
  170. package/dist/docs/modules/WhereQuery.html +0 -73
  171. package/dist/docs/modules/chunk_upload_chunk_upload_sdk.html +0 -88
  172. package/dist/docs/modules/chunk_upload_chunked_file_upload_utilities.html +0 -80
  173. package/dist/docs/modules/constants.html +0 -83
  174. package/dist/docs/modules/utils.html +0 -73
  175. package/dist/docs/modules.html +0 -80
  176. package/dist/docs/variables/constants.CONTENT_TYPES.html +0 -76
  177. package/dist/docs/variables/constants.EXPRESSION_TYPE.html +0 -106
  178. package/dist/docs/variables/constants.HEADER_NAMES.html +0 -102
  179. package/dist/docs/variables/constants.HTTP_METHODS.html +0 -84
  180. package/dist/docs/variables/constants.ODATA_PARAMS.html +0 -90
  181. package/dist/docs/variables/constants.SF_PARAMS.html +0 -84
  182. package/dist/samples.html +0 -625
  183. package/dist/sitefinity-webservices-sdk.js +0 -3125
  184. package/dist/sitefinity-webservices-sdk.js.map +0 -1
  185. package/dist/sitefinity-webservices-sdk.min.js +0 -1
  186. package/dist/src/BlobBuilder.d.ts +0 -14
  187. package/dist/src/Data.d.ts +0 -154
  188. package/dist/src/Data.spec.d.ts +0 -1
  189. package/dist/src/Expression.d.ts +0 -19
  190. package/dist/src/OrderProperty.d.ts +0 -8
  191. package/dist/src/Query.d.ts +0 -59
  192. package/dist/src/QueryBase.d.ts +0 -18
  193. package/dist/src/QueryBuilder.d.ts +0 -13
  194. package/dist/src/Requests/BatchRequest.d.ts +0 -146
  195. package/dist/src/Requests/ExecutableRequest.d.ts +0 -22
  196. package/dist/src/Requests/Request.d.ts +0 -132
  197. package/dist/src/Requests/RequestBase.d.ts +0 -27
  198. package/dist/src/Requests/request.spec.d.ts +0 -1
  199. package/dist/src/Sitefinity.d.ts +0 -75
  200. package/dist/src/Sitefinity.spec.d.ts +0 -1
  201. package/dist/src/WhereQuery.d.ts +0 -72
  202. package/dist/src/chunk-upload/chunk-upload.sdk.d.ts +0 -295
  203. package/dist/src/chunk-upload/chunk-upload.sdk.spec.d.ts +0 -1
  204. package/dist/src/chunk-upload/chunked-file-upload.utilities.d.ts +0 -13
  205. package/dist/src/utils.d.ts +0 -16
  206. package/karma.conf.js +0 -29
  207. package/sitefinity-webservices-sdk.ts +0 -15
  208. package/src/BlobBuilder.ts +0 -20
  209. package/src/Data.spec.ts +0 -160
  210. package/src/Data.ts +0 -418
  211. package/src/Expression.ts +0 -36
  212. package/src/OrderProperty.ts +0 -39
  213. package/src/Query.ts +0 -106
  214. package/src/QueryBase.ts +0 -57
  215. package/src/QueryBuilder.ts +0 -180
  216. package/src/Requests/BatchRequest.ts +0 -807
  217. package/src/Requests/ExecutableRequest.ts +0 -117
  218. package/src/Requests/Request.ts +0 -327
  219. package/src/Requests/RequestBase.ts +0 -163
  220. package/src/Requests/RequestFactory.ts +0 -75
  221. package/src/Requests/request.spec.ts +0 -132
  222. package/src/Sitefinity.spec.ts +0 -483
  223. package/src/Sitefinity.ts +0 -125
  224. package/src/WhereQuery.ts +0 -145
  225. package/src/chunk-upload/chunk-upload.sdk.spec.ts +0 -342
  226. package/src/chunk-upload/chunk-upload.sdk.ts +0 -439
  227. package/src/chunk-upload/chunked-file-upload.utilities.ts +0 -64
  228. package/src/constants.ts +0 -66
  229. package/src/utils.ts +0 -125
  230. package/template.html +0 -625
  231. package/tsconfig.json +0 -38
@@ -1,132 +0,0 @@
1
- import { SDKOptions, Token } from "../Sitefinity";
2
- import { ExecutableRequest } from "./ExecutableRequest";
3
- import { RequestOptionsBaseExtended } from "./RequestBase";
4
- export declare class GetRequest extends ExecutableRequest {
5
- constructor(requestOptions: RequestOptionsBaseExtended, token: Token, sdkOptions: SDKOptions);
6
- getMethod(): string;
7
- }
8
- export declare class GetByIdRequest extends ExecutableRequest {
9
- constructor(requestOptions: RequestOptionsBaseExtended, token: Token, sdkOptions: SDKOptions);
10
- getMethod(): string;
11
- }
12
- export declare class DeleteRequest extends ExecutableRequest {
13
- constructor(requestOptions: RequestOptionsBaseExtended, token: Token, sdkOptions: SDKOptions);
14
- getMethod(): string;
15
- }
16
- export declare class UpdateRequest extends ExecutableRequest {
17
- private data;
18
- private saveTemp;
19
- constructor(requestOptions: PutRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
20
- getMethod(): string;
21
- getBody(): object;
22
- getHeaders(): {
23
- [key: string]: string;
24
- };
25
- }
26
- export declare class CreateRequest extends ExecutableRequest {
27
- protected data: object;
28
- constructor(requestOptions: PostRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
29
- getMethod(): string;
30
- getBody(): object;
31
- }
32
- export declare class GetRelatedRequest extends GetByIdRequest {
33
- private property;
34
- constructor(requestOptions: RelatedRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
35
- buildUrl(): string;
36
- }
37
- export declare class GetRelatedByIdRequest extends GetByIdRequest {
38
- private property;
39
- private relatedId;
40
- constructor(requestOptions: RelatedByIdRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
41
- buildUrl(): string;
42
- }
43
- export declare class DeleteRelatedRequest extends DeleteRequest {
44
- private property;
45
- constructor(requestOptions: RelatedRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
46
- buildUrl(): string;
47
- }
48
- export declare class DeleteRelatedByIdRequest extends DeleteRequest {
49
- private property;
50
- private relatedId;
51
- constructor(requestOptions: RelatedByIdRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
52
- buildUrl(): string;
53
- }
54
- export declare class CreateRelatedRequest extends CreateRequest {
55
- private property;
56
- constructor(requestOptions: RelatedRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
57
- buildUrl(): string;
58
- }
59
- export declare class UploadRequest extends CreateRequest {
60
- private fileName;
61
- private uploadProperties;
62
- private contentType;
63
- constructor(requestOptions: UploadRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
64
- getHeaders(): {
65
- [key: string]: string;
66
- };
67
- getBody(): object;
68
- getMethod(): string;
69
- }
70
- export declare class UploadChunkRequest extends CreateRequest {
71
- contentType: string;
72
- chunkOrdinal: number;
73
- chunkSize: number;
74
- chunkedFileUploadSessionId: string;
75
- numberOfChunks: number;
76
- positionInQueue: number;
77
- blobStorageProviderName: string;
78
- fileName: string;
79
- constructor(requestOptions: UploadChunkRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
80
- getHeaders(): {
81
- [key: string]: string;
82
- };
83
- getBody(): object;
84
- getMethod(): string;
85
- protected executeProgressEvent(): void;
86
- }
87
- export declare class CommitChunksRequest extends CreateRequest {
88
- constructor(requestOptions: CommitChunksRequestOptionsExtended, token: Token, sdkOptions: SDKOptions);
89
- getMethod(): string;
90
- }
91
- export interface PostRequestOptionsExtended extends RequestOptionsBaseExtended {
92
- data?: object;
93
- }
94
- export interface PutRequestOptionsExtended extends PostRequestOptionsExtended {
95
- saveTemp: boolean;
96
- }
97
- export interface RelatedRequestOptionsExtended extends PostRequestOptionsExtended {
98
- property: string;
99
- }
100
- export interface RelatedByIdRequestOptionsExtended extends RelatedRequestOptionsExtended {
101
- relatedId: string;
102
- }
103
- export interface UploadRequestOptionsExtended extends PostRequestOptionsExtended {
104
- fileName: string;
105
- contentType: string;
106
- uploadProperties: {
107
- [key: string]: string;
108
- };
109
- }
110
- export interface UploadChunkRequestOptionsExtended extends PostRequestOptionsExtended {
111
- fileMimeType: string;
112
- fileName: string;
113
- chunkedFileUploadSessionId: string;
114
- chunkSize: number;
115
- chunkOrdinal: number;
116
- numberOfChunks: number;
117
- chunkBlob: Blob;
118
- blobStorageProviderName: string;
119
- positionOfChunkInQueue?: number;
120
- }
121
- export interface CommitChunksRequestOptionsExtended extends PostRequestOptionsExtended {
122
- chunkedFileUploadSessionId: string;
123
- blobStorageProviderName: string;
124
- contentType: string;
125
- fileTotalSize: number;
126
- numberOfChunks: number;
127
- fileName: string;
128
- uploadProperties: {
129
- [key: string]: string;
130
- };
131
- itemId?: string;
132
- }
@@ -1,27 +0,0 @@
1
- import { RequestOptionsBase } from "../Data";
2
- import { Query } from "../Query";
3
- import { TypeOptions } from "../Sitefinity";
4
- export declare class RequestBase {
5
- successCb: Function;
6
- failureCb: Function;
7
- progressCb: Function;
8
- key: string | number;
9
- urlOptions: TypeOptions;
10
- protected query: Query;
11
- protected action: string;
12
- private fallbackProperties;
13
- constructor(options: RequestOptionsBaseExtended);
14
- getQueryString(urlOptions: TypeOptions, query: Query): string;
15
- getBody(): object;
16
- getMethod(): string;
17
- getHeaders(): {
18
- [key: string]: string;
19
- };
20
- buildUrl(): string;
21
- protected parseResponse(http: XMLHttpRequest): string | any;
22
- protected addQueryParameters(url: string): string;
23
- private getQueryParameters;
24
- }
25
- export interface RequestOptionsBaseExtended extends RequestOptionsBase {
26
- urlOptions: TypeOptions;
27
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,75 +0,0 @@
1
- import { Data } from "./Data";
2
- import { Query } from "./Query";
3
- import { ResponseHandlers } from "./Requests/ExecutableRequest";
4
- import { BatchRequest } from "./Requests/BatchRequest";
5
- export declare class Sitefinity {
6
- static Query: typeof Query;
7
- private factory;
8
- private baseUrl;
9
- private siteId;
10
- /**
11
- * The constructor of the Sitefinity JavaScript SDK. This is the entry point for the SDK.
12
- */
13
- constructor(options: SDKOptions);
14
- data(options: TypeOptions): Data;
15
- batch(success?: Function, failure?: Function, progress?: Function, options?: TypeOptions): BatchRequest;
16
- /**
17
- * Sets the authentication token.
18
- */
19
- setToken(token: Token): void;
20
- }
21
- interface OptionsBase {
22
- /**
23
- * Your service url that points to the configured instance of Sitefinity service.
24
- */
25
- baseUrl?: string;
26
- /**
27
- * The ID of the site, for which the queries will be executed.
28
- */
29
- siteId?: string;
30
- }
31
- /**
32
- * Defines an object containing configuration options for the SDK object.
33
- */
34
- export interface SDKOptions extends OptionsBase {
35
- /**
36
- * The global handlers for request execution
37
- */
38
- handlers?: ResponseHandlers;
39
- enableUnlimitedChoices?: boolean;
40
- integrationMode?: boolean;
41
- }
42
- /**
43
- * Defines an object containing configuration options related to a specific type.
44
- */
45
- export interface TypeOptions extends OptionsBase {
46
- /**
47
- * The URL name of the type.
48
- */
49
- entitySet?: string;
50
- /**
51
- * The name of the provider. If empty the default provider for the site will be used.
52
- */
53
- provider?: string;
54
- /**
55
- * The name of the culture. If empty the default culture for the site will be used.
56
- */
57
- culture?: string;
58
- /**
59
- * Query params to be added to the request url.
60
- */
61
- additionalQueryParams?: {
62
- [key: string]: string;
63
- };
64
- /**
65
- * Headers to be added to the request.
66
- */
67
- additionalHeaders?: {
68
- [key: string]: string;
69
- };
70
- }
71
- export interface Token {
72
- type: string;
73
- value: string;
74
- }
75
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,72 +0,0 @@
1
- import { ComplexExpression } from "./Expression";
2
- /**
3
- * A fluent API operation for creating a filter for a query by chaining different rules.
4
- */
5
- export declare class WhereQuery<QueryType> {
6
- private parent;
7
- private expression;
8
- constructor(parent: QueryType, type?: string);
9
- /**
10
- * Adds an `and` clause to the current condition and returns it for further chaining.
11
- */
12
- and(): WhereQuery<WhereQuery<QueryType>>;
13
- /**
14
- * Adds an `or` clause to the current condition and returns it for further chaining.
15
- */
16
- or(): WhereQuery<WhereQuery<QueryType>>;
17
- /**
18
- * Adds an `any` clause to the current condition and returns it for further chaining.
19
- */
20
- any(): WhereQuery<WhereQuery<QueryType>>;
21
- /**
22
- * Adds a `not` clause to the current condition and returns it for further chaining.
23
- */
24
- not(): WhereQuery<WhereQuery<QueryType>>;
25
- /**
26
- * Adds a condition that a field must be equal to a specific value.
27
- */
28
- eq(parameter: string, constant: any): WhereQuery<QueryType>;
29
- /**
30
- * Adds a condition that a field must *not* be equal to a specific value.
31
- */
32
- ne(parameter: string, constant: any): WhereQuery<QueryType>;
33
- /**
34
- * Adds a condition that a field must be `greater than` a certain value. Applicable to Number, String, and Date fields.
35
- */
36
- gt(parameter: string, constant: any): WhereQuery<QueryType>;
37
- /**
38
- * Adds a condition that a field must be `greater than or equal` to a certain value. Applicable to Number, String, and Date fields.
39
- */
40
- gte(parameter: string, constant: any): WhereQuery<QueryType>;
41
- /**
42
- * Adds a condition that a field must be `less than` a certain value. Applicable to Number, String, and Date fields.
43
- */
44
- lt(parameter: string, constant: any): WhereQuery<QueryType>;
45
- /**
46
- * Adds a condition that a field must be `less than or equal` to a certain value. Applicable to Number, String, and Date fields.
47
- */
48
- lte(parameter: string, constant: any): WhereQuery<QueryType>;
49
- /**
50
- * Adds a condition that a field value must *start* with a specified string.
51
- */
52
- startsWith(parameter: string, constant: any, caseSensitive?: boolean): WhereQuery<QueryType>;
53
- /**
54
- * Adds a condition that a field value must *contain* a specified string.
55
- */
56
- contains(parameter: string, constant: any, caseSensitive?: boolean): WhereQuery<QueryType>;
57
- /**
58
- * Adds a condition that a field value must *end* with a specified string.
59
- */
60
- endsWith(parameter: string, constant: any, caseSensitive?: boolean): WhereQuery<QueryType>;
61
- /**
62
- * Adds a condition that specific values should be found in that field e.g. Id in (id1, id2, id3).
63
- */
64
- in(parameter: string, constant: any): WhereQuery<QueryType>;
65
- /**
66
- * Ends the definition of the current WhereQuery. You need to call this method in order to continue with the definition of the parent {@link Query}. All other `WhereQuery` methods return the current instance of `WhereQuery` to allow chaining.
67
- */
68
- done(): QueryType;
69
- getExpression(): ComplexExpression;
70
- private simple;
71
- private addComplexExpression;
72
- }
@@ -1,295 +0,0 @@
1
- import { CreateRequestOptions } from "../Data";
2
- import { RequestFactory } from "../Requests/RequestFactory";
3
- import { TypeOptions } from "../Sitefinity";
4
- import { ChunkFileResult } from "./chunked-file-upload.utilities";
5
- /**
6
- * @description Entry point for all chunk upload related tasks
7
- * @export
8
- * @class ChunkUploadSdk
9
- */
10
- export declare class ChunkUploadSdk {
11
- private urlOptions;
12
- private factory;
13
- constructor(urlOptions: TypeOptions, factory: RequestFactory);
14
- /**
15
- * @description Gets the needed information to start uploading chunks to the server
16
- * @param {GetChunkUploadInfoRequestOptions} parameters
17
- * @memberof ChunkUploadSdk
18
- */
19
- getChunkUploadInfo(parameters: GetChunkUploadInfoRequestOptions): void;
20
- /**
21
- * @description Sends a single chunk request to the server
22
- * @param {UploadChunkRequestOptions} parameters
23
- * @memberof ChunkUploadSdk
24
- */
25
- uploadChunk(parameters: UploadChunkRequestOptions): void;
26
- /**
27
- * @description Sends the commit chunks request to the server
28
- * @param {CommitChunksRequestOptions} parameters
29
- * @memberof ChunkUploadSdk
30
- */
31
- commitChunks(parameters: CommitChunksRequestOptions): void;
32
- /**
33
- * @description This request is intended to be used when something in the chunk upload process fails to delete the sent chunks
34
- * @param {CleanUpChunksRequestOptions} parameters
35
- * @memberof ChunkUploadSdk
36
- */
37
- cleanUpChunks(parameters: CleanUpChunksRequestOptions): void;
38
- /**
39
- * Chunks the provided file. If the file is a base64 string this method will convert it to a blob and then chunk it.
40
- *
41
- * @param {(Blob | string)} file
42
- * @param {number} chunkSize
43
- * @param {string} contentTypeMime
44
- * @return {*} {ChunkFileResult}
45
- * @memberof ChunkUploadService
46
- */
47
- chunkFile(file: Blob | string, chunkSize: number, contentTypeMime: string): ChunkFileResult;
48
- }
49
- /**
50
- * @description This interface shows the minimum data needed to create a single chunk upload request
51
- * @export
52
- * @interface UploadChunkRequestOptions
53
- * @extends {CreateRequestOptions}
54
- */
55
- export interface UploadChunkRequestOptions extends CreateRequestOptions {
56
- /**
57
- * @description the data needed to construct the request
58
- * @type {{
59
- * fileMimeType: string;
60
- * chunkedFileUploadSessionId: string;
61
- * chunkSize: number;
62
- * chunkOrdinal: number;
63
- * numberOfChunks: number;
64
- * positionOfChunkInQueue?: number;
65
- * chunkBlob: Blob;
66
- * blobStorageProviderName: string;
67
- * }}
68
- * @memberof UploadChunkRequestOptions
69
- */
70
- data: {
71
- /**
72
- * @description the file's mime type
73
- * @type {string}
74
- */
75
- fileMimeType: string;
76
- /**
77
- * @description the file's name
78
- * @type {string}
79
- */
80
- fileName: string;
81
- /**
82
- * @description the current chunk upload session Id
83
- * @type {string}
84
- */
85
- chunkedFileUploadSessionId: string;
86
- /**
87
- * @description the chunk size in bytes
88
- * @type {number}
89
- */
90
- chunkSize: number;
91
- /**
92
- * @description the chunk's ordinal
93
- * @type {number}
94
- */
95
- chunkOrdinal: number;
96
- /**
97
- * @description the total number of chunks
98
- * @type {number}
99
- */
100
- numberOfChunks: number;
101
- /**
102
- * @description Optional. The position of the chunk in the request queue, this property is used to calculate the progress of the upload
103
- * @type {number}
104
- */
105
- positionOfChunkInQueue?: number;
106
- /**
107
- * @description The chunk data
108
- * @type {Blob}
109
- */
110
- chunkBlob: Blob;
111
- /**
112
- * @description the target blob storage provider's name
113
- * @type {string}
114
- */
115
- blobStorageProviderName: string;
116
- };
117
- }
118
- /**
119
- * @description This interface shows the minimum data needed to create a commit chunks request
120
- * @export
121
- * @interface CommitChunksRequestOptions
122
- * @extends {CreateRequestOptions}
123
- */
124
- export interface CommitChunksRequestOptions extends CreateRequestOptions {
125
- /**
126
- * @description the data needed to construct the request
127
- * @type {{
128
- * chunkedFileUploadSessionId: string;
129
- * contentType: string;
130
- * fileTotalSize: number;
131
- * numberOfChunks: number;
132
- * name: string;
133
- * blobStorageProviderName: string;
134
- * uploadProperties: { [key: string]: string };
135
- * itemId?: string;
136
- * }}
137
- * @memberof CommitChunksRequestOptions
138
- */
139
- data: {
140
- /**
141
- * @description the current chunk upload session Id
142
- * @type {string}
143
- */
144
- chunkedFileUploadSessionId: string;
145
- /**
146
- * @description the file's mime type
147
- * @type {string}
148
- */
149
- contentType: string;
150
- /**
151
- * @description the total size of the file
152
- * @type {number}
153
- */
154
- fileTotalSize: number;
155
- /**
156
- * @description the total number of chunks
157
- * @type {number}
158
- */
159
- numberOfChunks: number;
160
- /**
161
- * @description the file's name
162
- * @type {string}
163
- */
164
- name: string;
165
- /**
166
- * @description the target blob storage provider's name
167
- * @type {string}
168
- */
169
- blobStorageProviderName: string;
170
- /**
171
- * @description the properties of the uploaded file like the Title, UrlName, etc
172
- * @type {{ [key: string]: string }}
173
- */
174
- uploadProperties: {
175
- [key: string]: string;
176
- };
177
- /**
178
- * @description Optional. Used when updating a media item, can be null when used to create a new media file.
179
- * @type {string}
180
- */
181
- itemId?: string;
182
- };
183
- }
184
- /**
185
- * @description This interface shows the minimum data needed to create request to get the chunk upload information for the current library from the server
186
- * @export
187
- * @interface GetChunkUploadInfoRequestOptions
188
- * @extends {CreateRequestOptions}
189
- */
190
- export interface GetChunkUploadInfoRequestOptions extends CreateRequestOptions {
191
- /**
192
- * @description the data needed to construct the request
193
- * @type {{
194
- * libraryId: string;
195
- * }}
196
- * @memberof GetChunkUploadInfoRequestOptions
197
- */
198
- data: {
199
- /**
200
- * @description the parent library (not folder) in which the file will be uploaded to
201
- * @type {string}
202
- */
203
- libraryId: string;
204
- };
205
- }
206
- /**
207
- * @description This interface show the minimum data needed to create a request to delete all chunk from a chunk upload session
208
- * @export
209
- * @interface CleanUpChunksRequestOptions
210
- * @extends {CreateRequestOptions}
211
- */
212
- export interface CleanUpChunksRequestOptions extends CreateRequestOptions {
213
- /**
214
- * @description the data needed to construct the request
215
- * @type {{
216
- * chunkedFileUploadSessionId: string;
217
- * blobStorageProviderName: string;
218
- * }}
219
- * @memberof CleanUpChunksRequestOptions
220
- */
221
- data: {
222
- /**
223
- * @description the current chunk upload session Id
224
- * @type {string}
225
- */
226
- chunkedFileUploadSessionId: string;
227
- /**
228
- * @description the target blob storage provider's name
229
- * @type {string}
230
- */
231
- blobStorageProviderName: string;
232
- };
233
- }
234
- /**
235
- * @description This is a data transfer object that shows the information provided by the getChunkUploadInfo request
236
- * @export
237
- * @interface ChunkUploadInfoDTO
238
- */
239
- export interface ChunkUploadInfoDTO {
240
- /**
241
- * @description shows wether the current blob storage provider supports uploading in chunks
242
- * @type {boolean}
243
- * @memberof ChunkUploadInfoDTO
244
- */
245
- ProviderSupportsChunkUpload: boolean;
246
- /**
247
- * @description the target blob storage provider's name
248
- * @type {string}
249
- * @memberof ChunkUploadInfoDTO
250
- */
251
- BlobStorageProviderName: string;
252
- /**
253
- * @description the current chunk upload session Id
254
- * @type {string}
255
- * @memberof ChunkUploadInfoDTO
256
- */
257
- ChunkedFileUploadSessionId: string;
258
- /**
259
- * @description the chunk size in bytes
260
- * @type {number}
261
- * @memberof ChunkUploadInfoDTO
262
- */
263
- ChunkSize: number;
264
- /**
265
- * @description the maximum amount of time a chunk should be retired
266
- * @type {number}
267
- * @memberof ChunkUploadInfoDTO
268
- */
269
- MaxRetryCountForChunk: number;
270
- /**
271
- * @description the maximum simultaneous requests that should be sent to the server
272
- * @type {number}
273
- * @memberof ChunkUploadInfoDTO
274
- */
275
- MaxSimultaneousChunkUploadRequestsPerSession: number;
276
- }
277
- /**
278
- * @description A DTO containing the data that the server responds with when a chunk is uploaded
279
- * @export
280
- * @interface ChunkUploadResult
281
- */
282
- export interface ChunkUploadResult {
283
- /**
284
- * @description indicates whether the chunk has been successfully uploaded
285
- * @type {boolean}
286
- * @memberof ChunkUploadResult
287
- */
288
- SuccessfullyUploaded: boolean;
289
- /**
290
- * @description the current chunk upload session Id
291
- * @type {string}
292
- * @memberof ChunkUploadResult
293
- */
294
- ChunkedFileUploadSessionId: string;
295
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- export declare class ChunkedFileUploadUtilities {
2
- chunkFile(file: Blob | string, chunkSize: number, contentTypeMime: string): ChunkFileResult;
3
- private base64ToBlob;
4
- }
5
- export interface FileUploadChunk {
6
- ordinal: number;
7
- content: Blob;
8
- }
9
- export interface ChunkFileResult {
10
- chunks: Array<FileUploadChunk>;
11
- totalChunksCount: number;
12
- fileTotalSize: number;
13
- }
@@ -1,16 +0,0 @@
1
- export declare class utils {
2
- static isString(obj: any): boolean;
3
- static isBoolean(obj: any): boolean;
4
- static isBlob(obj: any): boolean;
5
- static isNumber(value: any): boolean;
6
- static isFunction(func: any): boolean;
7
- static serializeToJSON(data: any): string;
8
- static parseStringToJson(data: any): any;
9
- static convertDateFieldToISOString(data: object): object;
10
- static hex16(): string;
11
- static addTrailingSlash(url: string): string;
12
- static removeSlashes(url: string): string;
13
- static clone(from: any, to?: {}, action?: Function): any;
14
- private static _parseDateProperties;
15
- private static _tryFormatFieldToDate;
16
- }
package/karma.conf.js DELETED
@@ -1,29 +0,0 @@
1
- module.exports = (config) => {
2
- config.set({
3
- frameworks: [ 'jasmine-ajax', 'jasmine', 'karma-typescript' ],
4
- plugins: [
5
- 'karma-jasmine',
6
- 'karma-chrome-launcher',
7
- 'karma-jasmine-ajax',
8
- 'karma-typescript',
9
- 'karma-spec-reporter'
10
- ],
11
- karmaTypescriptConfig: {
12
- tsconfig: "./tsconfig.json",
13
- },
14
- client: {
15
- // leave Jasmine Spec Runner output visible in browser
16
- clearContext: false
17
- },
18
- files: [ { pattern: 'src/**/*.ts' } ],
19
- preprocessors: {
20
- 'src/**/*.ts': [ 'karma-typescript' ]
21
- },
22
- reporters: [ 'spec', 'karma-typescript' ],
23
- colors: true,
24
- logLevel: config.LOG_INFO,
25
- autoWatch: true,
26
- browsers: ["Chrome"],
27
- singleRun: config.single_run
28
- })
29
- }
@@ -1,15 +0,0 @@
1
- export * from "./src/BlobBuilder";
2
- export * from "./src/constants";
3
- export * from "./src/utils";
4
- export * from "./src/WhereQuery";
5
- export * from "./src/Sitefinity";
6
- export * from "./src/QueryBuilder";
7
- export * from "./src/Query";
8
- export * from "./src/OrderProperty";
9
- export * from "./src/Expression";
10
- export * from "./src/Data";
11
- export * from "./src/Requests/BatchRequest";
12
- export * from "./src/Requests/ExecutableRequest";
13
- export * from "./src/Requests/Request";
14
- export * from "./src/Requests/RequestBase";
15
- export * from "./src/Requests/RequestFactory";