@uniformdev/canvas 19.8.0 → 19.10.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 (2) hide show
  1. package/dist/index.d.ts +394 -18
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -2892,6 +2892,202 @@ interface external$6 {
2892
2892
  };
2893
2893
  operations: {};
2894
2894
  };
2895
+ "../../../lambda/functions/v1-redirect.swagger.yml": {
2896
+ paths: {
2897
+ "/api/v1/redirect": {
2898
+ /** Called to retrieve a list of redirects related to a project */
2899
+ get: {
2900
+ parameters: {
2901
+ query: {
2902
+ /** The project to fetch redirects for */
2903
+ projectId: string;
2904
+ /** Id of the redirect to retrieve */
2905
+ id?: string;
2906
+ /** Ids of the redirects to retrieve */
2907
+ ids?: string[];
2908
+ /** Source url to attempt to find redirects for */
2909
+ sourceUrl?: string;
2910
+ /** Id of the project map the source or target belongs to. */
2911
+ projectMapId?: string;
2912
+ /** Id of the project map node to find redirects for. */
2913
+ sourceProjectMapNodeId?: string;
2914
+ /** Id of the project map node to find redirects for. */
2915
+ targetProjectMapNodeId?: string;
2916
+ /** Column to order results by, only applicable if trie is not active. */
2917
+ orderBy?: "updated_at asc" | "updated_at desc" | "source_url asc" | "source_url desc" | "target_url asc" | "target_url desc" | "created_by asc" | "created_by desc";
2918
+ /** Limit the results to this number of results, ignored if using trie parameter. */
2919
+ limit?: number;
2920
+ /** Offset the results a certain amount, useful for pagination. */
2921
+ offset?: number;
2922
+ /** Search text to filter redirects by, filtering on the source and target urls */
2923
+ search?: string;
2924
+ };
2925
+ };
2926
+ responses: {
2927
+ /** OK */
2928
+ 200: {
2929
+ content: {
2930
+ "application/json": {
2931
+ redirects: external$6["../../../lambda/functions/v1-redirect.swagger.yml"]["components"]["schemas"]["RedirectGetResponse"];
2932
+ total?: number;
2933
+ resultUrl?: string;
2934
+ };
2935
+ };
2936
+ };
2937
+ 400: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["BadRequestError"];
2938
+ 401: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["UnauthorizedError"];
2939
+ 403: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["ForbiddenError"];
2940
+ 429: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["RateLimitError"];
2941
+ 500: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["InternalServerError"];
2942
+ };
2943
+ };
2944
+ put: {
2945
+ responses: {
2946
+ /** OK */
2947
+ 200: {
2948
+ content: {
2949
+ "application/json": {
2950
+ /**
2951
+ * Format: uuid
2952
+ * @description Id of the redirect
2953
+ */
2954
+ id: string;
2955
+ };
2956
+ };
2957
+ };
2958
+ /** OK */
2959
+ 204: never;
2960
+ 400: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["BadRequestError"];
2961
+ 401: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["UnauthorizedError"];
2962
+ 403: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["ForbiddenError"];
2963
+ 429: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["RateLimitError"];
2964
+ 500: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["InternalServerError"];
2965
+ };
2966
+ requestBody: {
2967
+ content: {
2968
+ "application/json": {
2969
+ /** @description Redirect object to insert */
2970
+ redirect: external$6["../../../lambda/functions/v1-redirect.swagger.yml"]["components"]["schemas"]["Redirect"];
2971
+ /**
2972
+ * Format: uuid
2973
+ * @description Project id to insert the redirect into
2974
+ */
2975
+ projectId: string;
2976
+ };
2977
+ };
2978
+ };
2979
+ };
2980
+ /** Called to delete a redirect */
2981
+ delete: {
2982
+ responses: {
2983
+ /** OK */
2984
+ 200: {
2985
+ content: {
2986
+ "application/json": {
2987
+ /**
2988
+ * Format: uuid
2989
+ * @description Id of the redirect
2990
+ */
2991
+ id: string;
2992
+ };
2993
+ };
2994
+ };
2995
+ /** OK */
2996
+ 204: never;
2997
+ 400: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["BadRequestError"];
2998
+ 401: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["UnauthorizedError"];
2999
+ 403: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["ForbiddenError"];
3000
+ 429: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["RateLimitError"];
3001
+ 500: external$6["../../../lambda/functions/swagger.yml"]["components"]["responses"]["InternalServerError"];
3002
+ };
3003
+ requestBody: {
3004
+ content: {
3005
+ "application/json": {
3006
+ /**
3007
+ * Format: uuid
3008
+ * @description Redirect id to be deleted.
3009
+ */
3010
+ id: string;
3011
+ /**
3012
+ * Format: uuid
3013
+ * @description Project the redirect belongs to.
3014
+ */
3015
+ projectId: string;
3016
+ };
3017
+ };
3018
+ };
3019
+ };
3020
+ /** Handles preflight requests. This endpoint allows CORS. */
3021
+ options: {
3022
+ responses: {
3023
+ /** OK */
3024
+ 204: never;
3025
+ };
3026
+ };
3027
+ };
3028
+ };
3029
+ components: {
3030
+ schemas: {
3031
+ RedirectGetResponse: {
3032
+ redirect: external$6["../../../lambda/functions/v1-redirect.swagger.yml"]["components"]["schemas"]["Redirect"];
3033
+ metadata: external$6["../../../lambda/functions/v1-redirect.swagger.yml"]["components"]["schemas"]["RedirectMetadata"];
3034
+ }[];
3035
+ RedirectMetadata: {
3036
+ /** @description The last time the redirect was modified in UTC */
3037
+ updatedAt?: string;
3038
+ /** @description The last user who modified this redirect */
3039
+ updatedBy?: string;
3040
+ /** @description The time the redirect was created in UTC */
3041
+ createdAt?: string;
3042
+ /** @description The user who created this redirect or system */
3043
+ createdBy?: string;
3044
+ };
3045
+ Redirect: {
3046
+ /**
3047
+ * Format: uuid
3048
+ * @description Id of the redirect.
3049
+ */
3050
+ id?: string;
3051
+ /** @description Source meant to match a url that needs to be redirected. */
3052
+ sourceUrl: string;
3053
+ /** @description Target meant to be redirected to. */
3054
+ targetUrl: string;
3055
+ /** @description Redirect type to occur from this redirect. */
3056
+ targetStatusCode: number;
3057
+ /**
3058
+ * Format: uuid
3059
+ * @description Project map node related to the source this redirect.
3060
+ */
3061
+ sourceProjectMapNodeId?: string;
3062
+ /**
3063
+ * Format: uuid
3064
+ * @description Project map node related to the target this redirect.
3065
+ */
3066
+ targetProjectMapNodeId?: string;
3067
+ /**
3068
+ * Format: uuid
3069
+ * @description Project map related to this redirect.
3070
+ */
3071
+ projectMapId?: string;
3072
+ /** @description Signals the redirect engine to retain query string parameters to the target url. */
3073
+ sourceRetainQuerystring?: boolean;
3074
+ /** @description Incoming requests must match the domain that's defined in the redirection source. */
3075
+ sourceMustMatchDomain?: boolean;
3076
+ /** @description Rewritten url should match the protocol (http / https) of the incoming request instead of whatever is defined in the redirection target. */
3077
+ targetPreserveIncomingProtocol?: boolean;
3078
+ /** @description Rewritten url should match the domain of the incoming request regardless of what is defined in the redirection target. */
3079
+ targetPreserveIncomingDomain?: boolean;
3080
+ /** @description Stop running rules after this redirect rule gets executed. */
3081
+ stopExecutingAfter?: boolean;
3082
+ /** @description Merge incoming querystring with the querystring defined on the redirection target, taking the incoming querystring parameter where a merge is not possible. */
3083
+ targetMergeQuerystring?: boolean;
3084
+ /** @description Label as system generated or user generated. */
3085
+ labelAsSystem?: boolean;
3086
+ };
3087
+ };
3088
+ };
3089
+ operations: {};
3090
+ };
2895
3091
  "../../../lambda/functions/v1-route.swagger.yml": {
2896
3092
  paths: {
2897
3093
  "/api/v1/route": {
@@ -2965,15 +3161,7 @@ interface external$6 {
2965
3161
  dynamicInputs?: external$6["../../../lambda/functions/v1-route.swagger.yml"]["components"]["schemas"]["RouteDynamicInputs"];
2966
3162
  /** @enum {string} */
2967
3163
  type: "redirect";
2968
- redirect: {
2969
- /** @description Target meant to be redirected to. */
2970
- targetUrl: string;
2971
- /**
2972
- * @description Redirect type to occur from this redirect.
2973
- * @enum {integer}
2974
- */
2975
- targetStatusCode?: 301 | 302 | 307 | 308;
2976
- };
3164
+ redirect: external$6["../../../lambda/functions/v1-redirect.swagger.yml"]["components"]["schemas"]["Redirect"];
2977
3165
  };
2978
3166
  /**
2979
3167
  * @description The route matches a composition.
@@ -3114,15 +3302,7 @@ interface components {
3114
3302
  dynamicInputs?: components["schemas"]["RouteDynamicInputs"];
3115
3303
  /** @enum {string} */
3116
3304
  type: "redirect";
3117
- redirect: {
3118
- /** @description Target meant to be redirected to. */
3119
- targetUrl: string;
3120
- /**
3121
- * @description Redirect type to occur from this redirect.
3122
- * @enum {integer}
3123
- */
3124
- targetStatusCode?: 301 | 302 | 307 | 308;
3125
- };
3305
+ redirect: external$5["v1-redirect.swagger.yml"]["components"]["schemas"]["Redirect"];
3126
3306
  };
3127
3307
  /**
3128
3308
  * @description The route matches a composition.
@@ -4002,6 +4182,202 @@ interface external$5 {
4002
4182
  };
4003
4183
  operations: {};
4004
4184
  };
4185
+ "v1-redirect.swagger.yml": {
4186
+ paths: {
4187
+ "/api/v1/redirect": {
4188
+ /** Called to retrieve a list of redirects related to a project */
4189
+ get: {
4190
+ parameters: {
4191
+ query: {
4192
+ /** The project to fetch redirects for */
4193
+ projectId: string;
4194
+ /** Id of the redirect to retrieve */
4195
+ id?: string;
4196
+ /** Ids of the redirects to retrieve */
4197
+ ids?: string[];
4198
+ /** Source url to attempt to find redirects for */
4199
+ sourceUrl?: string;
4200
+ /** Id of the project map the source or target belongs to. */
4201
+ projectMapId?: string;
4202
+ /** Id of the project map node to find redirects for. */
4203
+ sourceProjectMapNodeId?: string;
4204
+ /** Id of the project map node to find redirects for. */
4205
+ targetProjectMapNodeId?: string;
4206
+ /** Column to order results by, only applicable if trie is not active. */
4207
+ orderBy?: "updated_at asc" | "updated_at desc" | "source_url asc" | "source_url desc" | "target_url asc" | "target_url desc" | "created_by asc" | "created_by desc";
4208
+ /** Limit the results to this number of results, ignored if using trie parameter. */
4209
+ limit?: number;
4210
+ /** Offset the results a certain amount, useful for pagination. */
4211
+ offset?: number;
4212
+ /** Search text to filter redirects by, filtering on the source and target urls */
4213
+ search?: string;
4214
+ };
4215
+ };
4216
+ responses: {
4217
+ /** OK */
4218
+ 200: {
4219
+ content: {
4220
+ "application/json": {
4221
+ redirects: external$5["v1-redirect.swagger.yml"]["components"]["schemas"]["RedirectGetResponse"];
4222
+ total?: number;
4223
+ resultUrl?: string;
4224
+ };
4225
+ };
4226
+ };
4227
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
4228
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
4229
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
4230
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
4231
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
4232
+ };
4233
+ };
4234
+ put: {
4235
+ responses: {
4236
+ /** OK */
4237
+ 200: {
4238
+ content: {
4239
+ "application/json": {
4240
+ /**
4241
+ * Format: uuid
4242
+ * @description Id of the redirect
4243
+ */
4244
+ id: string;
4245
+ };
4246
+ };
4247
+ };
4248
+ /** OK */
4249
+ 204: never;
4250
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
4251
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
4252
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
4253
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
4254
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
4255
+ };
4256
+ requestBody: {
4257
+ content: {
4258
+ "application/json": {
4259
+ /** @description Redirect object to insert */
4260
+ redirect: external$5["v1-redirect.swagger.yml"]["components"]["schemas"]["Redirect"];
4261
+ /**
4262
+ * Format: uuid
4263
+ * @description Project id to insert the redirect into
4264
+ */
4265
+ projectId: string;
4266
+ };
4267
+ };
4268
+ };
4269
+ };
4270
+ /** Called to delete a redirect */
4271
+ delete: {
4272
+ responses: {
4273
+ /** OK */
4274
+ 200: {
4275
+ content: {
4276
+ "application/json": {
4277
+ /**
4278
+ * Format: uuid
4279
+ * @description Id of the redirect
4280
+ */
4281
+ id: string;
4282
+ };
4283
+ };
4284
+ };
4285
+ /** OK */
4286
+ 204: never;
4287
+ 400: external$5["swagger.yml"]["components"]["responses"]["BadRequestError"];
4288
+ 401: external$5["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
4289
+ 403: external$5["swagger.yml"]["components"]["responses"]["ForbiddenError"];
4290
+ 429: external$5["swagger.yml"]["components"]["responses"]["RateLimitError"];
4291
+ 500: external$5["swagger.yml"]["components"]["responses"]["InternalServerError"];
4292
+ };
4293
+ requestBody: {
4294
+ content: {
4295
+ "application/json": {
4296
+ /**
4297
+ * Format: uuid
4298
+ * @description Redirect id to be deleted.
4299
+ */
4300
+ id: string;
4301
+ /**
4302
+ * Format: uuid
4303
+ * @description Project the redirect belongs to.
4304
+ */
4305
+ projectId: string;
4306
+ };
4307
+ };
4308
+ };
4309
+ };
4310
+ /** Handles preflight requests. This endpoint allows CORS. */
4311
+ options: {
4312
+ responses: {
4313
+ /** OK */
4314
+ 204: never;
4315
+ };
4316
+ };
4317
+ };
4318
+ };
4319
+ components: {
4320
+ schemas: {
4321
+ RedirectGetResponse: {
4322
+ redirect: external$5["v1-redirect.swagger.yml"]["components"]["schemas"]["Redirect"];
4323
+ metadata: external$5["v1-redirect.swagger.yml"]["components"]["schemas"]["RedirectMetadata"];
4324
+ }[];
4325
+ RedirectMetadata: {
4326
+ /** @description The last time the redirect was modified in UTC */
4327
+ updatedAt?: string;
4328
+ /** @description The last user who modified this redirect */
4329
+ updatedBy?: string;
4330
+ /** @description The time the redirect was created in UTC */
4331
+ createdAt?: string;
4332
+ /** @description The user who created this redirect or system */
4333
+ createdBy?: string;
4334
+ };
4335
+ Redirect: {
4336
+ /**
4337
+ * Format: uuid
4338
+ * @description Id of the redirect.
4339
+ */
4340
+ id?: string;
4341
+ /** @description Source meant to match a url that needs to be redirected. */
4342
+ sourceUrl: string;
4343
+ /** @description Target meant to be redirected to. */
4344
+ targetUrl: string;
4345
+ /** @description Redirect type to occur from this redirect. */
4346
+ targetStatusCode: number;
4347
+ /**
4348
+ * Format: uuid
4349
+ * @description Project map node related to the source this redirect.
4350
+ */
4351
+ sourceProjectMapNodeId?: string;
4352
+ /**
4353
+ * Format: uuid
4354
+ * @description Project map node related to the target this redirect.
4355
+ */
4356
+ targetProjectMapNodeId?: string;
4357
+ /**
4358
+ * Format: uuid
4359
+ * @description Project map related to this redirect.
4360
+ */
4361
+ projectMapId?: string;
4362
+ /** @description Signals the redirect engine to retain query string parameters to the target url. */
4363
+ sourceRetainQuerystring?: boolean;
4364
+ /** @description Incoming requests must match the domain that's defined in the redirection source. */
4365
+ sourceMustMatchDomain?: boolean;
4366
+ /** @description Rewritten url should match the protocol (http / https) of the incoming request instead of whatever is defined in the redirection target. */
4367
+ targetPreserveIncomingProtocol?: boolean;
4368
+ /** @description Rewritten url should match the domain of the incoming request regardless of what is defined in the redirection target. */
4369
+ targetPreserveIncomingDomain?: boolean;
4370
+ /** @description Stop running rules after this redirect rule gets executed. */
4371
+ stopExecutingAfter?: boolean;
4372
+ /** @description Merge incoming querystring with the querystring defined on the redirection target, taking the incoming querystring parameter where a merge is not possible. */
4373
+ targetMergeQuerystring?: boolean;
4374
+ /** @description Label as system generated or user generated. */
4375
+ labelAsSystem?: boolean;
4376
+ };
4377
+ };
4378
+ };
4379
+ operations: {};
4380
+ };
4005
4381
  }
4006
4382
 
4007
4383
  type Components = components$2['schemas'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.8.0",
3
+ "version": "19.10.0",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -47,7 +47,7 @@
47
47
  "pusher-js": "8.0.1"
48
48
  },
49
49
  "dependencies": {
50
- "@uniformdev/context": "19.8.0",
50
+ "@uniformdev/context": "19.10.0",
51
51
  "immer": "9.0.21"
52
52
  },
53
53
  "files": [
@@ -56,5 +56,5 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "70eb9277bbfaee5f9245e1b26b4e77caede22944"
59
+ "gitHead": "149f942da715ed802545850283f9b99291829a04"
60
60
  }