@croct/sdk 0.17.7 → 0.17.8
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/activeRecord.cjs.map +1 -0
- package/activeRecord.d.ts +8 -4
- package/activeRecord.js +115 -106
- package/activeRecord.js.map +1 -1
- package/apiKey.cjs.map +1 -0
- package/apiKey.d.ts +4 -2
- package/apiKey.js +152 -141
- package/apiKey.js.map +1 -1
- package/base64Url.cjs.map +1 -0
- package/base64Url.d.ts +4 -2
- package/base64Url.js +8 -15
- package/base64Url.js.map +1 -1
- package/cache/cache.cjs.map +1 -0
- package/cache/cache.d.ts +6 -4
- package/cache/cache.js +9 -10
- package/cache/cache.js.map +1 -1
- package/cache/cookieCache.cjs.map +1 -0
- package/cache/cookieCache.d.ts +6 -3
- package/cache/cookieCache.js +52 -54
- package/cache/cookieCache.js.map +1 -1
- package/cache/fallbackCache.cjs.map +1 -0
- package/cache/fallbackCache.d.ts +5 -2
- package/cache/fallbackCache.js +20 -21
- package/cache/fallbackCache.js.map +1 -1
- package/cache/inMemoryCache.cjs.map +1 -0
- package/cache/inMemoryCache.d.ts +5 -2
- package/cache/inMemoryCache.js +15 -17
- package/cache/inMemoryCache.js.map +1 -1
- package/cache/index.cjs.map +1 -0
- package/cache/index.d.ts +4 -4
- package/cache/index.js +9 -11
- package/cache/index.js.map +1 -1
- package/cache/localStorageCache.cjs.map +1 -0
- package/cache/localStorageCache.d.ts +5 -2
- package/cache/localStorageCache.js +55 -63
- package/cache/localStorageCache.js.map +1 -1
- package/channel/channel.cjs.map +1 -0
- package/channel/channel.d.ts +8 -6
- package/channel/channel.js +21 -22
- package/channel/channel.js.map +1 -1
- package/channel/encodedChannel.cjs.map +1 -0
- package/channel/encodedChannel.d.ts +6 -3
- package/channel/encodedChannel.js +13 -14
- package/channel/encodedChannel.js.map +1 -1
- package/channel/guaranteedChannel.cjs.map +1 -0
- package/channel/guaranteedChannel.d.ts +9 -7
- package/channel/guaranteedChannel.js +74 -73
- package/channel/guaranteedChannel.js.map +1 -1
- package/channel/httpBeaconChannel.cjs.map +1 -0
- package/channel/httpBeaconChannel.d.ts +9 -6
- package/channel/httpBeaconChannel.js +82 -83
- package/channel/httpBeaconChannel.js.map +1 -1
- package/channel/index.cjs.map +1 -0
- package/channel/index.d.ts +12 -7
- package/channel/index.js +15 -17
- package/channel/index.js.map +1 -1
- package/channel/queuedChannel.cjs.map +1 -0
- package/channel/queuedChannel.d.ts +7 -4
- package/channel/queuedChannel.js +87 -97
- package/channel/queuedChannel.js.map +1 -1
- package/channel/retryChannel.cjs.map +1 -0
- package/channel/retryChannel.d.ts +7 -5
- package/channel/retryChannel.js +58 -57
- package/channel/retryChannel.js.map +1 -1
- package/channel/sandboxChannel.cjs.map +1 -0
- package/channel/sandboxChannel.d.ts +5 -2
- package/channel/sandboxChannel.js +34 -35
- package/channel/sandboxChannel.js.map +1 -1
- package/cid/assigner.cjs.map +1 -0
- package/cid/assigner.d.ts +3 -1
- package/cid/assigner.js +0 -2
- package/cid/assigner.js.map +1 -1
- package/cid/cachedAssigner.cjs.map +1 -0
- package/cid/cachedAssigner.d.ts +7 -5
- package/cid/cachedAssigner.js +37 -43
- package/cid/cachedAssigner.js.map +1 -1
- package/cid/fixedAssigner.cjs.map +1 -0
- package/cid/fixedAssigner.d.ts +5 -2
- package/cid/fixedAssigner.js +9 -10
- package/cid/fixedAssigner.js.map +1 -1
- package/cid/index.cjs.map +1 -0
- package/cid/index.d.ts +6 -4
- package/cid/index.js +9 -11
- package/cid/index.js.map +1 -1
- package/cid/remoteAssigner.cjs.map +1 -0
- package/cid/remoteAssigner.d.ts +6 -3
- package/cid/remoteAssigner.js +36 -37
- package/cid/remoteAssigner.js.map +1 -1
- package/constants.cjs.map +1 -0
- package/constants.d.ts +6 -4
- package/constants.js +10 -7
- package/constants.js.map +1 -1
- package/container.cjs.map +1 -0
- package/container.d.ts +28 -15
- package/container.js +269 -252
- package/container.js.map +1 -1
- package/contentFetcher.cjs.map +1 -0
- package/contentFetcher.d.ts +17 -14
- package/contentFetcher.js +156 -163
- package/contentFetcher.js.map +1 -1
- package/context.cjs.map +1 -0
- package/context.d.ts +13 -9
- package/context.js +80 -81
- package/context.js.map +1 -1
- package/error.cjs.map +1 -0
- package/error.d.ts +4 -2
- package/error.js +21 -21
- package/error.js.map +1 -1
- package/evaluator.cjs.map +1 -0
- package/evaluator.d.ts +18 -16
- package/evaluator.js +179 -179
- package/evaluator.js.map +1 -1
- package/eventManager.cjs.map +1 -0
- package/eventManager.d.ts +8 -6
- package/eventManager.js +24 -26
- package/eventManager.js.map +1 -1
- package/eventSubjectProcessor.cjs.map +1 -0
- package/eventSubjectProcessor.d.ts +16 -3
- package/eventSubjectProcessor.js +53 -59
- package/eventSubjectProcessor.js.map +1 -1
- package/facade/contentFetcherFacade.cjs.map +1 -0
- package/facade/contentFetcherFacade.d.ts +16 -7
- package/facade/contentFetcherFacade.js +32 -35
- package/facade/contentFetcherFacade.js.map +1 -1
- package/facade/evaluatorFacade.cjs.map +1 -0
- package/facade/evaluatorFacade.d.ts +17 -10
- package/facade/evaluatorFacade.js +56 -60
- package/facade/evaluatorFacade.js.map +1 -1
- package/facade/index.cjs.map +1 -0
- package/facade/index.d.ts +29 -7
- package/facade/index.js +19 -19
- package/facade/index.js.map +1 -1
- package/facade/sdkFacade.cjs.map +1 -0
- package/facade/sdkFacade.d.ts +33 -15
- package/facade/sdkFacade.js +201 -214
- package/facade/sdkFacade.js.map +1 -1
- package/facade/sessionFacade.cjs.map +1 -0
- package/facade/sessionFacade.d.ts +18 -3
- package/facade/sessionFacade.js +10 -11
- package/facade/sessionFacade.js.map +1 -1
- package/facade/sessionPatch.cjs.map +1 -0
- package/facade/sessionPatch.d.ts +17 -4
- package/facade/sessionPatch.js +22 -24
- package/facade/sessionPatch.js.map +1 -1
- package/facade/trackerFacade.cjs.map +1 -0
- package/facade/trackerFacade.d.ts +17 -4
- package/facade/trackerFacade.js +67 -57
- package/facade/trackerFacade.js.map +1 -1
- package/facade/userFacade.cjs.map +1 -0
- package/facade/userFacade.d.ts +21 -4
- package/facade/userFacade.js +17 -18
- package/facade/userFacade.js.map +1 -1
- package/facade/userPatch.cjs.map +1 -0
- package/facade/userPatch.d.ts +17 -4
- package/facade/userPatch.js +22 -24
- package/facade/userPatch.js.map +1 -1
- package/help.cjs.map +1 -0
- package/help.d.ts +3 -1
- package/help.js +19 -23
- package/help.js.map +1 -1
- package/index.cjs.map +1 -0
- package/index.d.ts +25 -3
- package/index.js +7 -7
- package/index.js.map +1 -1
- package/logging/consoleLogger.cjs.map +1 -0
- package/logging/consoleLogger.d.ts +5 -2
- package/logging/consoleLogger.js +23 -24
- package/logging/consoleLogger.js.map +1 -1
- package/logging/filteredLogger.cjs.map +1 -0
- package/logging/filteredLogger.d.ts +8 -5
- package/logging/filteredLogger.js +36 -37
- package/logging/filteredLogger.js.map +1 -1
- package/logging/index.cjs.map +1 -0
- package/logging/index.d.ts +5 -5
- package/logging/index.js +11 -13
- package/logging/index.js.map +1 -1
- package/logging/logger.cjs.map +1 -0
- package/logging/logger.d.ts +4 -2
- package/logging/logger.js +0 -2
- package/logging/logger.js.map +1 -1
- package/logging/namespacedLogger.cjs.map +1 -0
- package/logging/namespacedLogger.d.ts +5 -2
- package/logging/namespacedLogger.js +22 -23
- package/logging/namespacedLogger.js.map +1 -1
- package/logging/nullLogger.cjs.map +1 -0
- package/logging/nullLogger.d.ts +5 -2
- package/logging/nullLogger.js +11 -16
- package/logging/nullLogger.js.map +1 -1
- package/namespacedStorage.cjs.map +1 -0
- package/namespacedStorage.d.ts +3 -1
- package/namespacedStorage.js +51 -52
- package/namespacedStorage.js.map +1 -1
- package/package.json +60 -6
- package/patch.cjs.map +1 -0
- package/patch.d.ts +6 -4
- package/patch.js +0 -2
- package/patch.js.map +1 -1
- package/queue/capacityRestrictedQueue.cjs.map +1 -0
- package/queue/capacityRestrictedQueue.d.ts +5 -2
- package/queue/capacityRestrictedQueue.js +31 -32
- package/queue/capacityRestrictedQueue.js.map +1 -1
- package/queue/inMemoryQueue.cjs.map +1 -0
- package/queue/inMemoryQueue.d.ts +5 -2
- package/queue/inMemoryQueue.js +32 -34
- package/queue/inMemoryQueue.js.map +1 -1
- package/queue/index.cjs.map +1 -0
- package/queue/index.d.ts +6 -5
- package/queue/index.js +11 -13
- package/queue/index.js.map +1 -1
- package/queue/monitoredQueue.cjs.map +1 -0
- package/queue/monitoredQueue.d.ts +8 -5
- package/queue/monitoredQueue.js +104 -110
- package/queue/monitoredQueue.js.map +1 -1
- package/queue/persistentQueue.cjs.map +1 -0
- package/queue/persistentQueue.d.ts +5 -2
- package/queue/persistentQueue.js +52 -54
- package/queue/persistentQueue.js.map +1 -1
- package/queue/queue.cjs.map +1 -0
- package/queue/queue.d.ts +3 -1
- package/queue/queue.js +0 -2
- package/queue/queue.js.map +1 -1
- package/retry/arbitraryPolicy.cjs.map +1 -0
- package/retry/arbitraryPolicy.d.ts +5 -2
- package/retry/arbitraryPolicy.js +14 -15
- package/retry/arbitraryPolicy.js.map +1 -1
- package/retry/backoffPolicy.cjs.map +1 -0
- package/retry/backoffPolicy.d.ts +5 -3
- package/retry/backoffPolicy.js +52 -50
- package/retry/backoffPolicy.js.map +1 -1
- package/retry/index.cjs.map +1 -0
- package/retry/index.d.ts +5 -5
- package/retry/index.js +11 -13
- package/retry/index.js.map +1 -1
- package/retry/maxAttemptsPolicy.cjs.map +1 -0
- package/retry/maxAttemptsPolicy.d.ts +5 -2
- package/retry/maxAttemptsPolicy.js +17 -18
- package/retry/maxAttemptsPolicy.js.map +1 -1
- package/retry/neverPolicy.cjs.map +1 -0
- package/retry/neverPolicy.d.ts +5 -2
- package/retry/neverPolicy.js +9 -10
- package/retry/neverPolicy.js.map +1 -1
- package/retry/policy.cjs.map +1 -0
- package/retry/policy.d.ts +3 -1
- package/retry/policy.js +0 -2
- package/retry/policy.js.map +1 -1
- package/schema/attributeSchema.cjs.map +1 -0
- package/schema/attributeSchema.d.ts +6 -2
- package/schema/attributeSchema.js +7 -7
- package/schema/attributeSchema.js.map +1 -1
- package/schema/contentFetcherSchemas.cjs.map +1 -0
- package/schema/contentFetcherSchemas.d.ts +6 -2
- package/schema/contentFetcherSchemas.js +24 -21
- package/schema/contentFetcherSchemas.js.map +1 -1
- package/schema/contentSchemas.cjs.map +1 -0
- package/schema/contentSchemas.d.ts +6 -2
- package/schema/contentSchemas.js +45 -45
- package/schema/contentSchemas.js.map +1 -1
- package/schema/contextSchemas.cjs.map +1 -0
- package/schema/contextSchemas.d.ts +6 -2
- package/schema/contextSchemas.js +6 -6
- package/schema/contextSchemas.js.map +1 -1
- package/schema/ecommerceSchemas.cjs.map +1 -0
- package/schema/ecommerceSchemas.d.ts +10 -6
- package/schema/ecommerceSchemas.js +176 -172
- package/schema/ecommerceSchemas.js.map +1 -1
- package/schema/evaluatorSchemas.cjs.map +1 -0
- package/schema/evaluatorSchemas.d.ts +6 -2
- package/schema/evaluatorSchemas.js +46 -30
- package/schema/evaluatorSchemas.js.map +1 -1
- package/schema/eventSchemas.cjs.map +1 -0
- package/schema/eventSchemas.d.ts +16 -12
- package/schema/eventSchemas.js +125 -102
- package/schema/eventSchemas.js.map +1 -1
- package/schema/index.cjs.map +1 -0
- package/schema/index.d.ts +14 -11
- package/schema/index.js +11 -14
- package/schema/index.js.map +1 -1
- package/schema/loggerSchema.cjs.map +1 -0
- package/schema/loggerSchema.d.ts +6 -2
- package/schema/loggerSchema.js +13 -13
- package/schema/loggerSchema.js.map +1 -1
- package/schema/operationSchemas.cjs.map +1 -0
- package/schema/operationSchemas.d.ts +14 -10
- package/schema/operationSchemas.js +85 -69
- package/schema/operationSchemas.js.map +1 -1
- package/schema/sdkFacadeSchemas.cjs.map +1 -0
- package/schema/sdkFacadeSchemas.d.ts +6 -2
- package/schema/sdkFacadeSchemas.js +65 -51
- package/schema/sdkFacadeSchemas.js.map +1 -1
- package/schema/sdkSchemas.cjs.map +1 -0
- package/schema/sdkSchemas.d.ts +8 -4
- package/schema/sdkSchemas.js +80 -78
- package/schema/sdkSchemas.js.map +1 -1
- package/schema/tokenSchema.cjs.map +1 -0
- package/schema/tokenSchema.d.ts +6 -2
- package/schema/tokenSchema.js +41 -38
- package/schema/tokenSchema.js.map +1 -1
- package/schema/userSchema.cjs.map +1 -0
- package/schema/userSchema.d.ts +6 -2
- package/schema/userSchema.js +183 -134
- package/schema/userSchema.js.map +1 -1
- package/sdk.cjs.map +1 -0
- package/sdk.d.ts +28 -14
- package/sdk.js +106 -108
- package/sdk.js.map +1 -1
- package/sdkEvents.cjs.map +1 -0
- package/sdkEvents.d.ts +10 -5
- package/sdkEvents.js +0 -2
- package/sdkEvents.js.map +1 -1
- package/sourceLocation.cjs.map +1 -0
- package/sourceLocation.d.ts +7 -5
- package/sourceLocation.js +56 -57
- package/sourceLocation.js.map +1 -1
- package/tab.cjs.map +1 -0
- package/tab.d.ts +9 -7
- package/tab.js +93 -90
- package/tab.js.map +1 -1
- package/token/cachedTokenStore.cjs.map +1 -0
- package/token/cachedTokenStore.d.ts +8 -3
- package/token/cachedTokenStore.js +22 -24
- package/token/cachedTokenStore.js.map +1 -1
- package/token/inMemoryTokenStore.cjs.map +1 -0
- package/token/inMemoryTokenStore.d.ts +7 -2
- package/token/inMemoryTokenStore.js +12 -13
- package/token/inMemoryTokenStore.js.map +1 -1
- package/token/index.cjs.map +1 -0
- package/token/index.d.ts +7 -4
- package/token/index.js +9 -11
- package/token/index.js.map +1 -1
- package/token/replicatedTokenStore.cjs.map +1 -0
- package/token/replicatedTokenStore.d.ts +7 -2
- package/token/replicatedTokenStore.js +14 -15
- package/token/replicatedTokenStore.js.map +1 -1
- package/token/token.cjs.map +1 -0
- package/token/token.d.ts +11 -8
- package/token/token.js +212 -195
- package/token/token.js.map +1 -1
- package/tracker.cjs.map +1 -0
- package/tracker.d.ts +20 -13
- package/tracker.js +307 -307
- package/tracker.js.map +1 -1
- package/trackingEvents.cjs.map +1 -0
- package/trackingEvents.d.ts +65 -62
- package/trackingEvents.js +57 -56
- package/trackingEvents.js.map +1 -1
- package/transformer.cjs.map +1 -0
- package/transformer.d.ts +4 -2
- package/transformer.js +5 -6
- package/transformer.js.map +1 -1
- package/utilityTypes.cjs.map +1 -0
- package/utilityTypes.d.ts +4 -2
- package/utilityTypes.js +0 -2
- package/utilityTypes.js.map +1 -1
- package/uuid.cjs.map +1 -0
- package/uuid.d.ts +3 -1
- package/uuid.js +27 -32
- package/uuid.js.map +1 -1
- package/validation/arrayType.cjs.map +1 -0
- package/validation/arrayType.d.ts +5 -3
- package/validation/arrayType.js +45 -41
- package/validation/arrayType.js.map +1 -1
- package/validation/booleanType.cjs.map +1 -0
- package/validation/booleanType.d.ts +5 -2
- package/validation/booleanType.js +19 -16
- package/validation/booleanType.js.map +1 -1
- package/validation/functionType.cjs.map +1 -0
- package/validation/functionType.d.ts +5 -2
- package/validation/functionType.js +19 -16
- package/validation/functionType.js.map +1 -1
- package/validation/index.cjs.map +1 -0
- package/validation/index.d.ts +12 -12
- package/validation/index.js +27 -29
- package/validation/index.js.map +1 -1
- package/validation/jsonType.cjs.map +1 -0
- package/validation/jsonType.d.ts +8 -6
- package/validation/jsonType.js +89 -82
- package/validation/jsonType.js.map +1 -1
- package/validation/mixedSchema.cjs.map +1 -0
- package/validation/mixedSchema.d.ts +5 -2
- package/validation/mixedSchema.js +5 -7
- package/validation/mixedSchema.js.map +1 -1
- package/validation/nullType.cjs.map +1 -0
- package/validation/nullType.d.ts +5 -2
- package/validation/nullType.js +19 -16
- package/validation/nullType.js.map +1 -1
- package/validation/numberType.cjs.map +1 -0
- package/validation/numberType.d.ts +5 -3
- package/validation/numberType.js +40 -32
- package/validation/numberType.js.map +1 -1
- package/validation/objectType.cjs.map +1 -0
- package/validation/objectType.d.ts +5 -3
- package/validation/objectType.js +84 -85
- package/validation/objectType.js.map +1 -1
- package/validation/schema.cjs.map +1 -0
- package/validation/schema.d.ts +5 -3
- package/validation/schema.js +8 -9
- package/validation/schema.js.map +1 -1
- package/validation/stringType.cjs.map +1 -0
- package/validation/stringType.d.ts +5 -3
- package/validation/stringType.js +74 -70
- package/validation/stringType.js.map +1 -1
- package/validation/unionType.cjs.map +1 -0
- package/validation/unionType.d.ts +5 -2
- package/validation/unionType.js +37 -35
- package/validation/unionType.js.map +1 -1
- package/validation/violation.cjs.map +1 -0
- package/validation/violation.d.ts +4 -2
- package/validation/violation.js +18 -18
- package/validation/violation.js.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schema/ecommerceSchemas.ts"],"sourcesContent":["import {ObjectType, StringType, NumberType, ArrayType} from '../validation';\n\nexport const productDetails = new ObjectType({\n required: ['productId', 'name', 'displayPrice'],\n properties: {\n productId: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n sku: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n name: new StringType({\n minLength: 1,\n maxLength: 200,\n }),\n category: new StringType({\n minLength: 1,\n maxLength: 100,\n }),\n brand: new StringType({\n minLength: 1,\n maxLength: 100,\n }),\n variant: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n displayPrice: new NumberType({\n minimum: 0,\n }),\n originalPrice: new NumberType({\n minimum: 0,\n }),\n url: new StringType({\n format: 'url',\n }),\n imageUrl: new StringType({\n format: 'url',\n }),\n },\n});\n\nexport const cartItem = new ObjectType({\n required: ['index', 'product', 'quantity', 'total'],\n properties: {\n index: new NumberType({\n minimum: 0,\n }),\n product: productDetails,\n quantity: new NumberType({\n minimum: 1,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n },\n});\n\nexport const cart = new ObjectType({\n required: ['currency', 'items', 'total'],\n properties: {\n currency: new StringType({\n maxLength: 10,\n minLength: 1,\n }),\n items: new ArrayType({\n items: cartItem,\n }),\n subtotal: new NumberType({\n minimum: 0,\n }),\n shippingPrice: new NumberType({\n minimum: 0,\n }),\n taxes: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n costs: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n lastUpdateTime: new NumberType(),\n },\n});\n\nexport const orderItem = new ObjectType({\n required: ['index', 'product', 'quantity', 'total'],\n properties: {\n index: new NumberType({\n minimum: 0,\n }),\n product: productDetails,\n quantity: new NumberType({\n minimum: 1,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n },\n});\n\nexport const order = new ObjectType({\n required: ['orderId', 'currency', 'items', 'total'],\n properties: {\n orderId: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n currency: new StringType({\n maxLength: 10,\n minLength: 1,\n }),\n items: new ArrayType({\n items: orderItem,\n minItems: 1,\n }),\n subtotal: new NumberType({\n minimum: 0,\n }),\n shippingPrice: new NumberType({\n minimum: 0,\n }),\n taxes: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n costs: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n paymentMethod: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n installments: new NumberType({\n minimum: 1,\n }),\n status: new StringType({\n enumeration: ['placed', 'paid', 'complete'],\n }),\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA4D;AAErD,MAAM,iBAAiB,IAAI,6BAAW;AAAA,EACzC,UAAU,CAAC,aAAa,QAAQ,cAAc;AAAA,EAC9C,YAAY;AAAA,IACR,WAAW,IAAI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L;AACJ,CAAC;","names":[]}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { ObjectType } from '../validation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ObjectType } from '../validation/objectType.js';
|
|
2
|
+
import '../validation/schema.js';
|
|
3
|
+
|
|
4
|
+
declare const productDetails: ObjectType;
|
|
5
|
+
declare const cartItem: ObjectType;
|
|
6
|
+
declare const cart: ObjectType;
|
|
7
|
+
declare const orderItem: ObjectType;
|
|
8
|
+
declare const order: ObjectType;
|
|
9
|
+
|
|
10
|
+
export { cart, cartItem, order, orderItem, productDetails };
|
|
@@ -1,178 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
format: 'url',
|
|
43
|
-
}),
|
|
44
|
-
},
|
|
1
|
+
import { ObjectType, StringType, NumberType, ArrayType } from "../validation";
|
|
2
|
+
const productDetails = new ObjectType({
|
|
3
|
+
required: ["productId", "name", "displayPrice"],
|
|
4
|
+
properties: {
|
|
5
|
+
productId: new StringType({
|
|
6
|
+
minLength: 1,
|
|
7
|
+
maxLength: 50
|
|
8
|
+
}),
|
|
9
|
+
sku: new StringType({
|
|
10
|
+
minLength: 1,
|
|
11
|
+
maxLength: 50
|
|
12
|
+
}),
|
|
13
|
+
name: new StringType({
|
|
14
|
+
minLength: 1,
|
|
15
|
+
maxLength: 200
|
|
16
|
+
}),
|
|
17
|
+
category: new StringType({
|
|
18
|
+
minLength: 1,
|
|
19
|
+
maxLength: 100
|
|
20
|
+
}),
|
|
21
|
+
brand: new StringType({
|
|
22
|
+
minLength: 1,
|
|
23
|
+
maxLength: 100
|
|
24
|
+
}),
|
|
25
|
+
variant: new StringType({
|
|
26
|
+
minLength: 1,
|
|
27
|
+
maxLength: 50
|
|
28
|
+
}),
|
|
29
|
+
displayPrice: new NumberType({
|
|
30
|
+
minimum: 0
|
|
31
|
+
}),
|
|
32
|
+
originalPrice: new NumberType({
|
|
33
|
+
minimum: 0
|
|
34
|
+
}),
|
|
35
|
+
url: new StringType({
|
|
36
|
+
format: "url"
|
|
37
|
+
}),
|
|
38
|
+
imageUrl: new StringType({
|
|
39
|
+
format: "url"
|
|
40
|
+
})
|
|
41
|
+
}
|
|
45
42
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
43
|
+
const cartItem = new ObjectType({
|
|
44
|
+
required: ["index", "product", "quantity", "total"],
|
|
45
|
+
properties: {
|
|
46
|
+
index: new NumberType({
|
|
47
|
+
minimum: 0
|
|
48
|
+
}),
|
|
49
|
+
product: productDetails,
|
|
50
|
+
quantity: new NumberType({
|
|
51
|
+
minimum: 1
|
|
52
|
+
}),
|
|
53
|
+
total: new NumberType({
|
|
54
|
+
minimum: 0
|
|
55
|
+
}),
|
|
56
|
+
discount: new NumberType({
|
|
57
|
+
minimum: 0
|
|
58
|
+
}),
|
|
59
|
+
coupon: new StringType({
|
|
60
|
+
minLength: 1,
|
|
61
|
+
maxLength: 50
|
|
62
|
+
})
|
|
63
|
+
}
|
|
67
64
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
65
|
+
const cart = new ObjectType({
|
|
66
|
+
required: ["currency", "items", "total"],
|
|
67
|
+
properties: {
|
|
68
|
+
currency: new StringType({
|
|
69
|
+
maxLength: 10,
|
|
70
|
+
minLength: 1
|
|
71
|
+
}),
|
|
72
|
+
items: new ArrayType({
|
|
73
|
+
items: cartItem
|
|
74
|
+
}),
|
|
75
|
+
subtotal: new NumberType({
|
|
76
|
+
minimum: 0
|
|
77
|
+
}),
|
|
78
|
+
shippingPrice: new NumberType({
|
|
79
|
+
minimum: 0
|
|
80
|
+
}),
|
|
81
|
+
taxes: new ObjectType({
|
|
82
|
+
additionalProperties: new NumberType(),
|
|
83
|
+
minProperties: 1
|
|
84
|
+
}),
|
|
85
|
+
costs: new ObjectType({
|
|
86
|
+
additionalProperties: new NumberType(),
|
|
87
|
+
minProperties: 1
|
|
88
|
+
}),
|
|
89
|
+
discount: new NumberType({
|
|
90
|
+
minimum: 0
|
|
91
|
+
}),
|
|
92
|
+
total: new NumberType({
|
|
93
|
+
minimum: 0
|
|
94
|
+
}),
|
|
95
|
+
coupon: new StringType({
|
|
96
|
+
minLength: 1,
|
|
97
|
+
maxLength: 50
|
|
98
|
+
}),
|
|
99
|
+
lastUpdateTime: new NumberType()
|
|
100
|
+
}
|
|
104
101
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
102
|
+
const orderItem = new ObjectType({
|
|
103
|
+
required: ["index", "product", "quantity", "total"],
|
|
104
|
+
properties: {
|
|
105
|
+
index: new NumberType({
|
|
106
|
+
minimum: 0
|
|
107
|
+
}),
|
|
108
|
+
product: productDetails,
|
|
109
|
+
quantity: new NumberType({
|
|
110
|
+
minimum: 1
|
|
111
|
+
}),
|
|
112
|
+
total: new NumberType({
|
|
113
|
+
minimum: 0
|
|
114
|
+
}),
|
|
115
|
+
discount: new NumberType({
|
|
116
|
+
minimum: 0
|
|
117
|
+
}),
|
|
118
|
+
coupon: new StringType({
|
|
119
|
+
minLength: 1,
|
|
120
|
+
maxLength: 50
|
|
121
|
+
})
|
|
122
|
+
}
|
|
126
123
|
});
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
124
|
+
const order = new ObjectType({
|
|
125
|
+
required: ["orderId", "currency", "items", "total"],
|
|
126
|
+
properties: {
|
|
127
|
+
orderId: new StringType({
|
|
128
|
+
minLength: 1,
|
|
129
|
+
maxLength: 50
|
|
130
|
+
}),
|
|
131
|
+
currency: new StringType({
|
|
132
|
+
maxLength: 10,
|
|
133
|
+
minLength: 1
|
|
134
|
+
}),
|
|
135
|
+
items: new ArrayType({
|
|
136
|
+
items: orderItem,
|
|
137
|
+
minItems: 1
|
|
138
|
+
}),
|
|
139
|
+
subtotal: new NumberType({
|
|
140
|
+
minimum: 0
|
|
141
|
+
}),
|
|
142
|
+
shippingPrice: new NumberType({
|
|
143
|
+
minimum: 0
|
|
144
|
+
}),
|
|
145
|
+
taxes: new ObjectType({
|
|
146
|
+
additionalProperties: new NumberType(),
|
|
147
|
+
minProperties: 1
|
|
148
|
+
}),
|
|
149
|
+
costs: new ObjectType({
|
|
150
|
+
additionalProperties: new NumberType(),
|
|
151
|
+
minProperties: 1
|
|
152
|
+
}),
|
|
153
|
+
discount: new NumberType({
|
|
154
|
+
minimum: 0
|
|
155
|
+
}),
|
|
156
|
+
total: new NumberType({
|
|
157
|
+
minimum: 0
|
|
158
|
+
}),
|
|
159
|
+
coupon: new StringType({
|
|
160
|
+
minLength: 1,
|
|
161
|
+
maxLength: 50
|
|
162
|
+
}),
|
|
163
|
+
paymentMethod: new StringType({
|
|
164
|
+
minLength: 1,
|
|
165
|
+
maxLength: 50
|
|
166
|
+
}),
|
|
167
|
+
installments: new NumberType({
|
|
168
|
+
minimum: 1
|
|
169
|
+
}),
|
|
170
|
+
status: new StringType({
|
|
171
|
+
enumeration: ["placed", "paid", "complete"]
|
|
172
|
+
})
|
|
173
|
+
}
|
|
177
174
|
});
|
|
175
|
+
export {
|
|
176
|
+
cart,
|
|
177
|
+
cartItem,
|
|
178
|
+
order,
|
|
179
|
+
orderItem,
|
|
180
|
+
productDetails
|
|
181
|
+
};
|
|
178
182
|
//# sourceMappingURL=ecommerceSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/schema/ecommerceSchemas.ts"],"sourcesContent":["import {ObjectType, StringType, NumberType, ArrayType} from '../validation';\n\nexport const productDetails = new ObjectType({\n required: ['productId', 'name', 'displayPrice'],\n properties: {\n productId: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n sku: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n name: new StringType({\n minLength: 1,\n maxLength: 200,\n }),\n category: new StringType({\n minLength: 1,\n maxLength: 100,\n }),\n brand: new StringType({\n minLength: 1,\n maxLength: 100,\n }),\n variant: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n displayPrice: new NumberType({\n minimum: 0,\n }),\n originalPrice: new NumberType({\n minimum: 0,\n }),\n url: new StringType({\n format: 'url',\n }),\n imageUrl: new StringType({\n format: 'url',\n }),\n },\n});\n\nexport const cartItem = new ObjectType({\n required: ['index', 'product', 'quantity', 'total'],\n properties: {\n index: new NumberType({\n minimum: 0,\n }),\n product: productDetails,\n quantity: new NumberType({\n minimum: 1,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n },\n});\n\nexport const cart = new ObjectType({\n required: ['currency', 'items', 'total'],\n properties: {\n currency: new StringType({\n maxLength: 10,\n minLength: 1,\n }),\n items: new ArrayType({\n items: cartItem,\n }),\n subtotal: new NumberType({\n minimum: 0,\n }),\n shippingPrice: new NumberType({\n minimum: 0,\n }),\n taxes: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n costs: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n lastUpdateTime: new NumberType(),\n },\n});\n\nexport const orderItem = new ObjectType({\n required: ['index', 'product', 'quantity', 'total'],\n properties: {\n index: new NumberType({\n minimum: 0,\n }),\n product: productDetails,\n quantity: new NumberType({\n minimum: 1,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n },\n});\n\nexport const order = new ObjectType({\n required: ['orderId', 'currency', 'items', 'total'],\n properties: {\n orderId: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n currency: new StringType({\n maxLength: 10,\n minLength: 1,\n }),\n items: new ArrayType({\n items: orderItem,\n minItems: 1,\n }),\n subtotal: new NumberType({\n minimum: 0,\n }),\n shippingPrice: new NumberType({\n minimum: 0,\n }),\n taxes: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n costs: new ObjectType({\n additionalProperties: new NumberType(),\n minProperties: 1,\n }),\n discount: new NumberType({\n minimum: 0,\n }),\n total: new NumberType({\n minimum: 0,\n }),\n coupon: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n paymentMethod: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n installments: new NumberType({\n minimum: 1,\n }),\n status: new StringType({\n enumeration: ['placed', 'paid', 'complete'],\n }),\n },\n});\n"],"mappings":"AAAA,SAAQ,YAAY,YAAY,YAAY,iBAAgB;AAErD,MAAM,iBAAiB,IAAI,WAAW;AAAA,EACzC,UAAU,CAAC,aAAa,QAAQ,cAAc;AAAA,EAC9C,YAAY;AAAA,IACR,WAAW,IAAI,WAAW;AAAA,MACtB,WAAW;AAAA,MACX,WAAW;AAAA,IACf,CAAC;AAAA,IACD,KAAK,IAAI,WAAW;AAAA,M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UAAU,CAAC,WAAW,YAAY,SAAS,OAAO;AAAA,EAClD,YAAY;AAAA,IACR,SAAS,IAAI,WAAW;AAAA,MACpB,WAAW;AAAA,MACX,WAAW;AAAA,IACf,CAAC;AAAA,IACD,UAAU,IAAI,WAAW;AAAA,MACrB,WAAW;AAAA,MACX,WAAW;AAAA,IACf,CAAC;AAAA,IACD,OAAO,IAAI,UAAU;AAAA,MACjB,OAAO;AAAA,MACP,UAAU;AAAA,IACd,CAAC;AAAA,IACD,UAAU,IAAI,WAAW;AAAA,MACrB,SAAS;AAAA,IACb,CAAC;AAAA,IACD,eAAe,IAAI,WAAW;AAAA,MAC1B,SAAS;AAAA,IACb,CAAC;AAAA,IACD,OAAO,IAAI,WAAW;AAAA,MAClB,sBAAsB,IAAI,WAAW;AAAA,MACrC,eAAe;AAAA,IACnB,CAAC;AAAA,IACD,OAAO,IAAI,WAAW;AAAA,MAClB,sBAAsB,IAAI,WAAW;AAAA,MACrC,eAAe;AAAA,IACnB,CAAC;AAAA,IACD,UAAU,IAAI,WAAW;AAAA,MACrB,SAAS;AAAA,IACb,CAAC;AAAA,IACD,OAAO,IAAI,WAAW;AAAA,MAClB,SAAS;AAAA,IACb,CAAC;AAAA,IACD,QAAQ,IAAI,WAAW;AAAA,MACnB,WAAW;AAAA,MACX,WAAW;AAAA,IACf,CAAC;AAAA,IACD,eAAe,IAAI,WAAW;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,IACf,CAAC;AAAA,IACD,cAAc,IAAI,WAAW;AAAA,MACzB,SAAS;AAAA,IACb,CAAC;AAAA,IACD,QAAQ,IAAI,WAAW;AAAA,MACnB,aAAa,CAAC,UAAU,QAAQ,UAAU;AAAA,IAC9C,CAAC;AAAA,EACL;AACJ,CAAC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schema/evaluatorSchemas.ts"],"sourcesContent":["import {\n ObjectType,\n NumberType,\n JsonObjectType,\n UnionType,\n StringType,\n NullType,\n BooleanType,\n TypeSchema,\n ArrayType,\n} from '../validation';\n\nfunction createJsonSchema(maximumDepth: number): TypeSchema {\n return new UnionType(\n new NullType(),\n new NumberType(),\n new BooleanType(),\n new StringType({maxLength: 255}),\n ...(maximumDepth > 1\n ? [\n new JsonObjectType({\n propertyNames: new UnionType(\n new NumberType(),\n new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n ),\n properties: createJsonSchema(maximumDepth - 1),\n }),\n new ArrayType({items: createJsonSchema(maximumDepth - 1)}),\n ]\n : []\n ),\n );\n}\n\nexport const evaluationOptionsSchema = new ObjectType({\n properties: {\n timeout: new NumberType({\n integer: true,\n minimum: 0,\n }),\n attributes: new JsonObjectType({\n propertyNames: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n properties: createJsonSchema(5),\n }),\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAUO;AAEP,SAAS,iBAAiB,cAAkC;AACxD,SAAO,IAAI;AAAA,IACP,IAAI,2BAAS;AAAA,IACb,IAAI,6BAAW;AAAA,IACf,IAAI,8BAAY;AAAA,IAChB,IAAI,6BAAW,EAAC,WAAW,IAAG,CAAC;AAAA,IAC/B,GAAI,eAAe,IACb;AAAA,MACE,IAAI,iCAAe;AAAA,QACf,eAAe,IAAI;AAAA,UACf,IAAI,6BAAW;AAAA,UACf,IAAI,6BAAW;AAAA,YACX,WAAW;AAAA,YACX,WAAW;AAAA,UACf,CAAC;AAAA,QACL;AAAA,QACA,YAAY,iBAAiB,eAAe,CAAC;AAAA,MACjD,CAAC;AAAA,MACD,IAAI,4BAAU,EAAC,OAAO,iBAAiB,eAAe,CAAC,EAAC,CAAC;AAAA,IAC7D,IACE,CAAC;AAAA,EAEX;AACJ;AAEO,MAAM,0BAA0B,IAAI,6BAAW;AAAA,EAClD,YAAY;AAAA,IACR,SAAS,IAAI,6BAAW;AAAA,MACpB,SAAS;AAAA,MACT,SAAS;AAAA,IACb,CAAC;AAAA,IACD,YAAY,IAAI,iCAAe;AAAA,MAC3B,eAAe,IAAI,6BAAW;AAAA,QAC1B,WAAW;AAAA,QACX,WAAW;AAAA,MACf,CAAC;AAAA,MACD,YAAY,iBAAiB,CAAC;AAAA,IAClC,CAAC;AAAA,EACL;AACJ,CAAC;","names":[]}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { ObjectType } from '../validation';
|
|
2
|
-
|
|
1
|
+
import { ObjectType } from '../validation/objectType.js';
|
|
2
|
+
import '../validation/schema.js';
|
|
3
|
+
|
|
4
|
+
declare const evaluationOptionsSchema: ObjectType;
|
|
5
|
+
|
|
6
|
+
export { evaluationOptionsSchema };
|
|
@@ -1,34 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
ObjectType,
|
|
3
|
+
NumberType,
|
|
4
|
+
JsonObjectType,
|
|
5
|
+
UnionType,
|
|
6
|
+
StringType,
|
|
7
|
+
NullType,
|
|
8
|
+
BooleanType,
|
|
9
|
+
ArrayType
|
|
10
|
+
} from "../validation";
|
|
5
11
|
function createJsonSchema(maximumDepth) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
return new UnionType(
|
|
13
|
+
new NullType(),
|
|
14
|
+
new NumberType(),
|
|
15
|
+
new BooleanType(),
|
|
16
|
+
new StringType({ maxLength: 255 }),
|
|
17
|
+
...maximumDepth > 1 ? [
|
|
18
|
+
new JsonObjectType({
|
|
19
|
+
propertyNames: new UnionType(
|
|
20
|
+
new NumberType(),
|
|
21
|
+
new StringType({
|
|
22
|
+
minLength: 1,
|
|
23
|
+
maxLength: 50
|
|
24
|
+
})
|
|
25
|
+
),
|
|
26
|
+
properties: createJsonSchema(maximumDepth - 1)
|
|
27
|
+
}),
|
|
28
|
+
new ArrayType({ items: createJsonSchema(maximumDepth - 1) })
|
|
29
|
+
] : []
|
|
30
|
+
);
|
|
18
31
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
const evaluationOptionsSchema = new ObjectType({
|
|
33
|
+
properties: {
|
|
34
|
+
timeout: new NumberType({
|
|
35
|
+
integer: true,
|
|
36
|
+
minimum: 0
|
|
37
|
+
}),
|
|
38
|
+
attributes: new JsonObjectType({
|
|
39
|
+
propertyNames: new StringType({
|
|
40
|
+
minLength: 1,
|
|
41
|
+
maxLength: 50
|
|
42
|
+
}),
|
|
43
|
+
properties: createJsonSchema(5)
|
|
44
|
+
})
|
|
45
|
+
}
|
|
33
46
|
});
|
|
47
|
+
export {
|
|
48
|
+
evaluationOptionsSchema
|
|
49
|
+
};
|
|
34
50
|
//# sourceMappingURL=evaluatorSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../src/schema/evaluatorSchemas.ts"],"sourcesContent":["import {\n ObjectType,\n NumberType,\n JsonObjectType,\n UnionType,\n StringType,\n NullType,\n BooleanType,\n TypeSchema,\n ArrayType,\n} from '../validation';\n\nfunction createJsonSchema(maximumDepth: number): TypeSchema {\n return new UnionType(\n new NullType(),\n new NumberType(),\n new BooleanType(),\n new StringType({maxLength: 255}),\n ...(maximumDepth > 1\n ? [\n new JsonObjectType({\n propertyNames: new UnionType(\n new NumberType(),\n new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n ),\n properties: createJsonSchema(maximumDepth - 1),\n }),\n new ArrayType({items: createJsonSchema(maximumDepth - 1)}),\n ]\n : []\n ),\n );\n}\n\nexport const evaluationOptionsSchema = new ObjectType({\n properties: {\n timeout: new NumberType({\n integer: true,\n minimum: 0,\n }),\n attributes: new JsonObjectType({\n propertyNames: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n properties: createJsonSchema(5),\n }),\n },\n});\n"],"mappings":"AAAA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OACG;AAEP,SAAS,iBAAiB,cAAkC;AACxD,SAAO,IAAI;AAAA,IACP,IAAI,SAAS;AAAA,IACb,IAAI,WAAW;AAAA,IACf,IAAI,YAAY;AAAA,IAChB,IAAI,WAAW,EAAC,WAAW,IAAG,CAAC;AAAA,IAC/B,GAAI,eAAe,IACb;AAAA,MACE,IAAI,eAAe;AAAA,QACf,eAAe,IAAI;AAAA,UACf,IAAI,WAAW;AAAA,UACf,IAAI,WAAW;AAAA,YACX,WAAW;AAAA,YACX,WAAW;AAAA,UACf,CAAC;AAAA,QACL;AAAA,QACA,YAAY,iBAAiB,eAAe,CAAC;AAAA,MACjD,CAAC;AAAA,MACD,IAAI,UAAU,EAAC,OAAO,iBAAiB,eAAe,CAAC,EAAC,CAAC;AAAA,IAC7D,IACE,CAAC;AAAA,EAEX;AACJ;AAEO,MAAM,0BAA0B,IAAI,WAAW;AAAA,EAClD,YAAY;AAAA,IACR,SAAS,IAAI,WAAW;AAAA,MACpB,SAAS;AAAA,MACT,SAAS;AAAA,IACb,CAAC;AAAA,IACD,YAAY,IAAI,eAAe;AAAA,MAC3B,eAAe,IAAI,WAAW;AAAA,QAC1B,WAAW;AAAA,QACX,WAAW;AAAA,MACf,CAAC;AAAA,MACD,YAAY,iBAAiB,CAAC;AAAA,IAClC,CAAC;AAAA,EACL;AACJ,CAAC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schema/eventSchemas.ts"],"sourcesContent":["import {\n ObjectType,\n StringType,\n NumberType,\n UnionType,\n NullType,\n BooleanType,\n ArrayType,\n} from '../validation';\nimport {cart, order, productDetails} from './ecommerceSchemas';\nimport {userProfileSchema} from './userSchema';\nimport {postDetails} from './contentSchemas';\n\nexport const cartModified = new ObjectType({\n required: ['cart'],\n properties: {\n cart: cart,\n },\n});\n\nexport const cartViewed = new ObjectType({\n required: ['cart'],\n properties: {\n cart: cart,\n },\n});\n\nexport const checkoutStarted = new ObjectType({\n required: ['cart'],\n properties: {\n cart: cart,\n orderId: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n },\n});\n\nexport const orderPlaced = new ObjectType({\n required: ['order'],\n properties: {\n order: order,\n },\n});\n\nexport const productViewed = new ObjectType({\n required: ['product'],\n properties: {\n product: productDetails,\n },\n});\n\nexport const userSignedUp = new ObjectType({\n required: ['userId'],\n properties: {\n userId: new StringType({\n minLength: 1,\n maxLength: 254,\n }),\n profile: userProfileSchema,\n },\n});\n\nexport const goalCompleted = new ObjectType({\n required: ['goalId'],\n properties: {\n goalId: new StringType({\n minLength: 3,\n maxLength: 100,\n pattern: /^[a-z0-9][a-z0-9:_-]+[a-z0-9]$/i,\n }),\n value: new NumberType({\n minimum: 0,\n }),\n currency: new StringType({\n minLength: 1,\n maxLength: 10,\n }),\n },\n});\n\nexport const interestShown = new ObjectType({\n required: ['interests'],\n properties: {\n interests: new ArrayType({\n items: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n minItems: 1,\n maxItems: 10,\n }),\n },\n});\n\nexport const postViewed = new ObjectType({\n required: ['post'],\n properties: {\n post: postDetails,\n },\n});\n\nexport const linkOpened = new ObjectType({\n required: ['link'],\n properties: {\n link: new StringType(),\n },\n});\n\nexport const eventOccurred = new ObjectType({\n required: ['name'],\n properties: {\n name: new StringType({\n minLength: 1,\n maxLength: 50,\n }),\n details: new ObjectType({\n additionalProperties: new UnionType(\n new NullType(),\n new BooleanType(),\n new NumberType(),\n new StringType({\n maxLength: 300,\n }),\n ),\n propertyNames: new StringType({\n minLength: 1,\n maxLength: 20,\n format: 'identifier',\n }),\n maxProperties: 10,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ACJ,CAAC;","names":[]}
|
package/schema/eventSchemas.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { ObjectType } from '../validation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { ObjectType } from '../validation/objectType.js';
|
|
2
|
+
import '../validation/schema.js';
|
|
3
|
+
|
|
4
|
+
declare const cartModified: ObjectType;
|
|
5
|
+
declare const cartViewed: ObjectType;
|
|
6
|
+
declare const checkoutStarted: ObjectType;
|
|
7
|
+
declare const orderPlaced: ObjectType;
|
|
8
|
+
declare const productViewed: ObjectType;
|
|
9
|
+
declare const userSignedUp: ObjectType;
|
|
10
|
+
declare const goalCompleted: ObjectType;
|
|
11
|
+
declare const interestShown: ObjectType;
|
|
12
|
+
declare const postViewed: ObjectType;
|
|
13
|
+
declare const linkOpened: ObjectType;
|
|
14
|
+
declare const eventOccurred: ObjectType;
|
|
15
|
+
|
|
16
|
+
export { cartModified, cartViewed, checkoutStarted, eventOccurred, goalCompleted, interestShown, linkOpened, orderPlaced, postViewed, productViewed, userSignedUp };
|