@artisan-commerce/types 0.14.0-canary.24 → 0.14.0-canary.26

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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.14.0-canary.26](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.25...@artisan-commerce/types@0.14.0-canary.26) (2021-12-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **global:** update and add types and builders for notifications ([5d6902b](https://bitbucket.org/tradesystem/artisn_sdk/commit/5d6902ba54a84d14a783b5bcda3381ec68a1e636))
12
+
13
+
14
+
15
+ ## [0.14.0-canary.25](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.24...@artisan-commerce/types@0.14.0-canary.25) (2021-11-05)
16
+
17
+
18
+ ### Features
19
+
20
+ * **global:** fix types and builders for store coupon and add condition to shipping cost ([2800a87](https://bitbucket.org/tradesystem/artisn_sdk/commit/2800a87a326c9f0ca5e0f1fbe202e15768fc32c9))
21
+
22
+
23
+
6
24
  ## [0.14.0-canary.24](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.23...@artisan-commerce/types@0.14.0-canary.24) (2021-10-22)
7
25
 
8
26
 
package/dist/bundle.d.ts CHANGED
@@ -1156,7 +1156,7 @@ interface Coupon {
1156
1156
  /** Coupon unique identifier */
1157
1157
  id: number;
1158
1158
  /** Coupon image */
1159
- image: null;
1159
+ image: URLImage | null;
1160
1160
  /** Coupon name */
1161
1161
  name: string;
1162
1162
  /** Whether or not the coupon is exclusive to one store */
@@ -2076,28 +2076,6 @@ interface Rule {
2076
2076
  min: number;
2077
2077
  }
2078
2078
 
2079
- /**
2080
- * Notification object.
2081
- *
2082
- * @interface Notification
2083
- * @since 0.5.15
2084
- */
2085
- interface Notification {
2086
- /** Notification unique identifier */
2087
- id: number;
2088
- /** Notification title */
2089
- title: string;
2090
- /** Notification description */
2091
- description: string;
2092
- /**
2093
- * Whether or not the notification was read. Purposefully
2094
- * has a string type.
2095
- */
2096
- read: string;
2097
- /** Notification creation date */
2098
- creationDate: string;
2099
- }
2100
-
2101
2079
  /**
2102
2080
  * Representation of a basic Shipping Address.
2103
2081
  *
@@ -3068,6 +3046,161 @@ interface OrderPaymentMethod {
3068
3046
  */
3069
3047
  declare type OrderStatus = "APPROVED" | "REJECTED" | "PENDING";
3070
3048
 
3049
+ /**
3050
+ * Notification object.
3051
+ *
3052
+ * @interface Notification
3053
+ * @since 0.1.0
3054
+ */
3055
+ interface Notification {
3056
+ /** Notification unique identifier */
3057
+ id: number;
3058
+ /** Notification title */
3059
+ title: string;
3060
+ /** Notification description */
3061
+ description: string;
3062
+ /** Notification list title */
3063
+ listTitle: string;
3064
+ /** Notification list items */
3065
+ listItems: NotificationListItem[];
3066
+ /** Notification creation date */
3067
+ creationDate: string;
3068
+ /** Notification priority, see {@link NotificationPriority} */
3069
+ priority: NotificationPriority;
3070
+ /**
3071
+ * Whether or not the notification was read. Purposefully
3072
+ * has a string type.
3073
+ */
3074
+ read: ReadValue;
3075
+ /** Notification extra data, see {@link NotificationExtraData} */
3076
+ extra_data: NotificationExtraData;
3077
+ }
3078
+ /**
3079
+ * Possible priority values for notifications.
3080
+ *
3081
+ * @typedef NotificationPriority
3082
+ * @since 0.1.0
3083
+ */
3084
+ declare type NotificationPriority = "HIGH" | "LOW";
3085
+ /**
3086
+ * Possible read values for notifications.
3087
+ *
3088
+ * @typedef ReadValue
3089
+ * @since 0.1.0
3090
+ */
3091
+ declare type ReadValue = "YES" | "NO";
3092
+ /**
3093
+ * Notification extra data.
3094
+ *
3095
+ * @interface NotificationExtraData
3096
+ * @since 0.1.0
3097
+ */
3098
+ interface NotificationExtraData {
3099
+ /** The id of the notification extra data */
3100
+ id: number;
3101
+ /** Sequential value */
3102
+ seqVal: string;
3103
+ /** Unique identifier */
3104
+ uid: string;
3105
+ /** Notification user, see {@link NotificationUser} */
3106
+ user: NotificationUser;
3107
+ /** The provided account id of the application */
3108
+ accountId: Account["accountId"];
3109
+ /** Vendor related to the notification, see {@link NotificationVendor} */
3110
+ vendor: NotificationVendor;
3111
+ /** City of the store related to the notification, see {@link BaseField} */
3112
+ city: BaseField;
3113
+ /** Store related to the notification, see {@link NotificationStore} */
3114
+ store: NotificationStore;
3115
+ /** Channel unique identifier */
3116
+ channel_id: number;
3117
+ /** Provided country id */
3118
+ countryId: number;
3119
+ /** Notification step, see {@link NotificationStep} */
3120
+ step: NotificationStep;
3121
+ /** Allocation options, see {@link Allocation} */
3122
+ allocation: Allocation;
3123
+ /** Payment Method of the order related to the notification */
3124
+ paymentMethod: string;
3125
+ /** Total price of the order */
3126
+ total: string;
3127
+ /** Notification additional information, see {@link NotificationAdditionalInfo} */
3128
+ additionalInfo: NotificationAdditionalInfo;
3129
+ /** Notification creation Date */
3130
+ created_at: string;
3131
+ }
3132
+ /**
3133
+ * Notification vendor.
3134
+ *
3135
+ * @interface NotificationVendor
3136
+ * @since 0.1.0
3137
+ * @extends Vendor
3138
+ */
3139
+ interface NotificationVendor extends Omit<Vendor, "images" | "maxPurchaseValue" | "description" | "sponsored" | "active"> {
3140
+ }
3141
+ /**
3142
+ * Notification store.
3143
+ *
3144
+ * @interface NotificationStore
3145
+ * @since 0.1.0
3146
+ * @extends BaseField
3147
+ */
3148
+ interface NotificationStore extends BaseField {
3149
+ /** Store's address */
3150
+ address: string;
3151
+ }
3152
+ /**
3153
+ * Notification user.
3154
+ *
3155
+ * @interface NotificationUser
3156
+ * @since 0.1.0
3157
+ */
3158
+ interface NotificationUser {
3159
+ /** Notification user name */
3160
+ name: string;
3161
+ /** Notification user address */
3162
+ address: string;
3163
+ /** Notification user email */
3164
+ email: string;
3165
+ }
3166
+ /**
3167
+ * Notification step.
3168
+ *
3169
+ * @interface NotificationStep
3170
+ * @since 0.1.0
3171
+ * @extends StepWorkflow
3172
+ */
3173
+ interface NotificationStep extends Omit<StepWorkflow, "additional_info" | "color" | "description" | "description_frontend" | "subtitle_frontend" | "title_frontend" | "transitions" | "notification"> {
3174
+ }
3175
+ /**
3176
+ * Notification additional information.
3177
+ *
3178
+ * @interface NotificationAdditionalInfo
3179
+ * @since 0.1.0
3180
+ */
3181
+ interface NotificationAdditionalInfo {
3182
+ /** Whether or not notification has parent shopping cart*/
3183
+ parent_shopping_cart: boolean;
3184
+ /** Order metadata shipping, see {@link MetadataShipping} */
3185
+ metadata_shipping: MetadataShipping;
3186
+ /** Project unique identifier */
3187
+ aud: string;
3188
+ /** Unique identifier of workflowId */
3189
+ workflowId: number;
3190
+ }
3191
+ /**
3192
+ * Notification list item.
3193
+ *
3194
+ * @interface NotificationListItem
3195
+ * @since 0.1.0
3196
+ */
3197
+ interface NotificationListItem {
3198
+ /** Notification list item title */
3199
+ title: string;
3200
+ /** Notification list item description */
3201
+ description: string;
3202
+ }
3203
+
3071
3204
  /**
3072
3205
  * Basic payment method object.
3073
3206
  *
@@ -3168,4 +3301,4 @@ interface CardInscription {
3168
3301
  createdAt?: string;
3169
3302
  }
3170
3303
 
3171
- export { ARDocumentType, Account, AdditionalInfo, AdditionalStoreInformation, Alert, Allocation, ArtisnApp, ArtisnDB, ArtisnDBCollectionReference, ArtisnDBDocumentData, ArtisnDBQueryDocumentSnapshot, ArtisnHeaders, ArtisnHints, ArtisnParams, ArtisnPlatform, ArtisnQuery, ArtisnRNApp, ArtisnRNAuth, ArtisnRNAuthInstance, ArtisnRNSettings, ArtisnRequest, ArtisnRequestBody, ArtisnRequestHeaders, ArtisnRequestMethod, ArtisnRestrictedHeaders, ArtisnWebApp, ArtisnWebAuth, ArtisnWebAuthInstance, ArtisnWebSettings, Award, BODocumentType, BRDocumentType, Banner, BannerImage, BannerScope, BannerType, BaseBillingData, BaseField, BaseLivingPlace, BaseOrder, BasePaymentMethod, BaseProduct, BaseShippingAddress, BaseUser, BaseWeekDay, Benefit, BenefitData, BenefitTypes, BenefitsByUserNode, BenefitsByUserNodes, BillTotal, BillTotalCategory, BillingData, CDNImage, CLDocumentType, CODocumentType, CardInscription, CardName, CartProduct, CartProductAnswer, CartProductQuestion, CartStore, CartTotals, Catalogue, Category, CategoryWithProducts, Code, CommonDocumentType, Country, CountryCode, CountryCurrency, CountrySummary, Coupon, CouponCategory, CouponType, CreditCardMapping, CurrencyCodes, DayOfWeek, Days, Delivery, DeliveryTimeUnit, DocumentType, ECDocumentType, Field, FieldRecord, Gender, GenericStoreLocation, Image, ImageFit, ImageManipulationConfig, ImageToFormat, Injection, InjectionDetail, IntegrationMessage, Issue, IssueAdditionalInfo, IssueHistory, LivingPlace, LivingPlaceToSave, MaritalStatus, Message, MetadataShipping, NewShippingAddress, Notification, Objectify, OperatorInformation, Order, OrderAdditionalInfo, OrderBillProduct, OrderBillProductAdditionalInfo, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderProductAdditionalInfo, OrderProductAttributes, OrderProductImage, OrderProductPriceCategory, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, PaymentProvider, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductCoupon, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, ShoppingCartNode, ShoppingCartNodes, Status, StepCategory, StepCode, StepNotification, StepWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, Store, StoreCoupon, StoreCouponDetail, StoreLocation, StorePolygons, Suborder, TaxCalculation, TaxCalculations, TaxType, Token, TransitionWorkflow, URLImage, USDocumentType, UYDocumentType, UpdatedShippingAddress, User, UserCountry, UserSettings, UserType, VEDocumentType, Vendor, Wallet, WebhookWorkflow, Workflow, ZipCodeField };
3304
+ export { ARDocumentType, Account, AdditionalInfo, AdditionalStoreInformation, Alert, Allocation, ArtisnApp, ArtisnDB, ArtisnDBCollectionReference, ArtisnDBDocumentData, ArtisnDBQueryDocumentSnapshot, ArtisnHeaders, ArtisnHints, ArtisnParams, ArtisnPlatform, ArtisnQuery, ArtisnRNApp, ArtisnRNAuth, ArtisnRNAuthInstance, ArtisnRNSettings, ArtisnRequest, ArtisnRequestBody, ArtisnRequestHeaders, ArtisnRequestMethod, ArtisnRestrictedHeaders, ArtisnWebApp, ArtisnWebAuth, ArtisnWebAuthInstance, ArtisnWebSettings, Award, BODocumentType, BRDocumentType, Banner, BannerImage, BannerScope, BannerType, BaseBillingData, BaseField, BaseLivingPlace, BaseOrder, BasePaymentMethod, BaseProduct, BaseShippingAddress, BaseUser, BaseWeekDay, Benefit, BenefitData, BenefitTypes, BenefitsByUserNode, BenefitsByUserNodes, BillTotal, BillTotalCategory, BillingData, CDNImage, CLDocumentType, CODocumentType, CardInscription, CardName, CartProduct, CartProductAnswer, CartProductQuestion, CartStore, CartTotals, Catalogue, Category, CategoryWithProducts, Code, CommonDocumentType, Country, CountryCode, CountryCurrency, CountrySummary, Coupon, CouponCategory, CouponType, CreditCardMapping, CurrencyCodes, DayOfWeek, Days, Delivery, DeliveryTimeUnit, DocumentType, ECDocumentType, Field, FieldRecord, Gender, GenericStoreLocation, Image, ImageFit, ImageManipulationConfig, ImageToFormat, Injection, InjectionDetail, IntegrationMessage, Issue, IssueAdditionalInfo, IssueHistory, LivingPlace, LivingPlaceToSave, MaritalStatus, Message, MetadataShipping, NewShippingAddress, Notification, NotificationAdditionalInfo, NotificationExtraData, NotificationListItem, NotificationPriority, NotificationStep, NotificationStore, NotificationUser, NotificationVendor, Objectify, OperatorInformation, Order, OrderAdditionalInfo, OrderBillProduct, OrderBillProductAdditionalInfo, OrderBillTotal, OrderCommonFields, OrderDetailShippingCost, OrderDetails, OrderPaymentMethod, OrderProduct, OrderProductAdditionalInfo, OrderProductAttributes, OrderProductImage, OrderProductPriceCategory, OrderRetry, OrderRetryPaymentMethod, OrderShoppingCart, OrderStatus, OrderStep, OrderStepAdditionalInfo, OrderStepAdditionalInfoGroup, OrderStore, OrderUser, PEDocumentType, PYDocumentType, PaymentMethod, PaymentMethodByOrder, PaymentMethodName, PaymentProvider, Phone, PriceCategory, PriceCategoryTax, PriceCategoryType, Product, ProductAnswer, ProductAttributes, ProductCoupon, ProductDetails, ProductPrices, ProductQuestion, ProductStatus, ProductType, RandomImageConfig, ReadValue, Rule, Schedule, Service, Settings, ShippingAddress, ShippingCost, ShippingCostTax, ShoppingCart, ShoppingCartBenefits, ShoppingCartNode, ShoppingCartNodes, Status, StepCategory, StepCode, StepNotification, StepWorkflow, StepWorkflowAdditionalInfo, StepWorkflowGroup, Store, StoreCoupon, StoreCouponDetail, StoreLocation, StorePolygons, Suborder, TaxCalculation, TaxCalculations, TaxType, Token, TransitionWorkflow, URLImage, USDocumentType, UYDocumentType, UpdatedShippingAddress, User, UserCountry, UserSettings, UserType, VEDocumentType, Vendor, Wallet, WebhookWorkflow, Workflow, ZipCodeField };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
- "version": "0.14.0-canary.24",
4
+ "version": "0.14.0-canary.26",
5
5
  "main": "./dist/bundle.d.ts",
6
6
  "module": "./dist/bundle.d.ts",
7
7
  "types": "./dist/bundle.d.ts",
@@ -34,5 +34,5 @@
34
34
  "@react-native-firebase/firestore": "^12.8.0",
35
35
  "firebase": "^8.1.1"
36
36
  },
37
- "gitHead": "496782c54ad0d996b4b29371c06419dcd967df5e"
37
+ "gitHead": "f3d2aaff805c4365862b007b5ed2d6e3eadbd9a3"
38
38
  }