@simpleapps-com/augur-utils 0.1.2 → 0.1.4

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/dist/index.d.cts CHANGED
@@ -418,7 +418,7 @@ type TPriceData = {
418
418
  };
419
419
 
420
420
  type TItemsFilters = {
421
- filters: Record<string, string>[];
421
+ filters: [string, string][];
422
422
  limit: number;
423
423
  offset: number;
424
424
  sortBy: string;
@@ -467,6 +467,106 @@ type MenuItem = {
467
467
  type: string;
468
468
  children: MenuItem[];
469
469
  };
470
+ type TMenu = {
471
+ id: string;
472
+ title: string;
473
+ alias: string;
474
+ link: string;
475
+ level: string;
476
+ parent_id: string;
477
+ path: string;
478
+ published: string;
479
+ type: string;
480
+ menutype: string;
481
+ lft: string;
482
+ rgt: string;
483
+ checked_out: string;
484
+ checked_out_time: string;
485
+ component_id: string;
486
+ note: string;
487
+ language: string;
488
+ params: string;
489
+ };
490
+
491
+ type TSmartyStreets = {
492
+ addressee: string | null;
493
+ carrierRoute: string;
494
+ cityName: string;
495
+ congressionalDistrict: string;
496
+ defaultCityName: string;
497
+ deliveryLine1: string;
498
+ deliveryLine2: string | null;
499
+ deliveryPoint: string;
500
+ deliveryPointCheckDigit: string;
501
+ dpvCmra: string;
502
+ dpvConfirmation: string;
503
+ dpvFootnotes: string;
504
+ dpvNoStat: string;
505
+ dpvVacant: string;
506
+ elotSequence: string;
507
+ elotSort: string;
508
+ ewsMatch: boolean;
509
+ fipsCountyCode: string;
510
+ footnotes: string;
511
+ lacsLinkCode: string;
512
+ lacsLinkIndicator: string;
513
+ lastLine: string;
514
+ latitude: number;
515
+ longitude: number;
516
+ plus4Code: string;
517
+ postOfficeCity: string;
518
+ postOfficeState: string;
519
+ precision: string;
520
+ primaryNumber: string;
521
+ recordType: string;
522
+ rdi: string;
523
+ secondaryDesignator: string;
524
+ secondaryNumber: string;
525
+ stateAbbreviation: string;
526
+ streetName: string;
527
+ streetPostdirection: string;
528
+ streetPredirection: string;
529
+ streetSuffix: string;
530
+ suiteboxNotFound: string;
531
+ urbanization: string;
532
+ zipCode: string;
533
+ zipCodeType: string;
534
+ };
535
+
536
+ type TJoomlaContent = {
537
+ id: number;
538
+ title: string;
539
+ alias: string;
540
+ catid: number;
541
+ introtext: string;
542
+ fulltext: string;
543
+ ordering: number;
544
+ images: string[];
545
+ imageIntro: string;
546
+ fields: Record<string, unknown>;
547
+ };
548
+ type TJoomlaContentFilters = {
549
+ limit: number;
550
+ offset: number;
551
+ q: string;
552
+ sortBy: string;
553
+ tagslist: string;
554
+ };
555
+
556
+ type TProfileValues = Record<string, string | number | undefined>;
557
+ type TUserProfile = {
558
+ email: string;
559
+ id: number;
560
+ name: string;
561
+ username: string;
562
+ customerId: number | string | undefined;
563
+ contactId: number | string | undefined;
564
+ profileValues: TProfileValues;
565
+ groups: {
566
+ id: number | string;
567
+ title: string;
568
+ }[];
569
+ };
470
570
 
471
571
  type OrderHeader = {
472
572
  carrier_id: string;
@@ -701,4 +801,4 @@ type CacheTier = keyof typeof CACHE_CONFIG;
701
801
  */
702
802
  declare function formatPrice(price: number, locale?: string, currency?: string): string;
703
803
 
704
- export { CACHE_CONFIG, type CacheTier, type CustomerDocument, type MenuItem, type OrderHeader, type OrderLine, type OrderNote, type OrderPayment, type TApiResponse, type TAttribute, type TAttributeValue, type TCartHdrUid, type TCartLine, type TCartLookUp, type TCategory, type TCategoryChild, type TInvMast, type TInvMastDoc, type TInventorySupplier, type TItemAccessory, type TItemAttribute, type TItemAttributes, type TItemCategory, type TItemDetails, type TItemRelatedProduct, type TItemUom, type TItemsFilters, type TLibraryPriceBreak, type TLibraryPriceData, type TLtlRatesResponse, type TLtlShipmentData, type TMetaTags, type TOrderCartLine, type TPriceData, type TProductCategory, type TProductItem, type TProductStockData, type TRelatedProduct, type TSearchSuggestion, type TSearchSuggestionsResponse, type TShippingMethod, type TStock, type TStockData, type TTax, type TTaxItem, type TWebDesc, formatPrice };
804
+ export { CACHE_CONFIG, type CacheTier, type CustomerDocument, type MenuItem, type OrderHeader, type OrderLine, type OrderNote, type OrderPayment, type TApiResponse, type TAttribute, type TAttributeValue, type TCartHdrUid, type TCartLine, type TCartLookUp, type TCategory, type TCategoryChild, type TInvMast, type TInvMastDoc, type TInventorySupplier, type TItemAccessory, type TItemAttribute, type TItemAttributes, type TItemCategory, type TItemDetails, type TItemRelatedProduct, type TItemUom, type TItemsFilters, type TJoomlaContent, type TJoomlaContentFilters, type TLibraryPriceBreak, type TLibraryPriceData, type TLtlRatesResponse, type TLtlShipmentData, type TMenu, type TMetaTags, type TOrderCartLine, type TPriceData, type TProductCategory, type TProductItem, type TProductStockData, type TProfileValues, type TRelatedProduct, type TSearchSuggestion, type TSearchSuggestionsResponse, type TShippingMethod, type TSmartyStreets, type TStock, type TStockData, type TTax, type TTaxItem, type TUserProfile, type TWebDesc, formatPrice };
package/dist/index.d.ts CHANGED
@@ -418,7 +418,7 @@ type TPriceData = {
418
418
  };
419
419
 
420
420
  type TItemsFilters = {
421
- filters: Record<string, string>[];
421
+ filters: [string, string][];
422
422
  limit: number;
423
423
  offset: number;
424
424
  sortBy: string;
@@ -467,6 +467,106 @@ type MenuItem = {
467
467
  type: string;
468
468
  children: MenuItem[];
469
469
  };
470
+ type TMenu = {
471
+ id: string;
472
+ title: string;
473
+ alias: string;
474
+ link: string;
475
+ level: string;
476
+ parent_id: string;
477
+ path: string;
478
+ published: string;
479
+ type: string;
480
+ menutype: string;
481
+ lft: string;
482
+ rgt: string;
483
+ checked_out: string;
484
+ checked_out_time: string;
485
+ component_id: string;
486
+ note: string;
487
+ language: string;
488
+ params: string;
489
+ };
490
+
491
+ type TSmartyStreets = {
492
+ addressee: string | null;
493
+ carrierRoute: string;
494
+ cityName: string;
495
+ congressionalDistrict: string;
496
+ defaultCityName: string;
497
+ deliveryLine1: string;
498
+ deliveryLine2: string | null;
499
+ deliveryPoint: string;
500
+ deliveryPointCheckDigit: string;
501
+ dpvCmra: string;
502
+ dpvConfirmation: string;
503
+ dpvFootnotes: string;
504
+ dpvNoStat: string;
505
+ dpvVacant: string;
506
+ elotSequence: string;
507
+ elotSort: string;
508
+ ewsMatch: boolean;
509
+ fipsCountyCode: string;
510
+ footnotes: string;
511
+ lacsLinkCode: string;
512
+ lacsLinkIndicator: string;
513
+ lastLine: string;
514
+ latitude: number;
515
+ longitude: number;
516
+ plus4Code: string;
517
+ postOfficeCity: string;
518
+ postOfficeState: string;
519
+ precision: string;
520
+ primaryNumber: string;
521
+ recordType: string;
522
+ rdi: string;
523
+ secondaryDesignator: string;
524
+ secondaryNumber: string;
525
+ stateAbbreviation: string;
526
+ streetName: string;
527
+ streetPostdirection: string;
528
+ streetPredirection: string;
529
+ streetSuffix: string;
530
+ suiteboxNotFound: string;
531
+ urbanization: string;
532
+ zipCode: string;
533
+ zipCodeType: string;
534
+ };
535
+
536
+ type TJoomlaContent = {
537
+ id: number;
538
+ title: string;
539
+ alias: string;
540
+ catid: number;
541
+ introtext: string;
542
+ fulltext: string;
543
+ ordering: number;
544
+ images: string[];
545
+ imageIntro: string;
546
+ fields: Record<string, unknown>;
547
+ };
548
+ type TJoomlaContentFilters = {
549
+ limit: number;
550
+ offset: number;
551
+ q: string;
552
+ sortBy: string;
553
+ tagslist: string;
554
+ };
555
+
556
+ type TProfileValues = Record<string, string | number | undefined>;
557
+ type TUserProfile = {
558
+ email: string;
559
+ id: number;
560
+ name: string;
561
+ username: string;
562
+ customerId: number | string | undefined;
563
+ contactId: number | string | undefined;
564
+ profileValues: TProfileValues;
565
+ groups: {
566
+ id: number | string;
567
+ title: string;
568
+ }[];
569
+ };
470
570
 
471
571
  type OrderHeader = {
472
572
  carrier_id: string;
@@ -701,4 +801,4 @@ type CacheTier = keyof typeof CACHE_CONFIG;
701
801
  */
702
802
  declare function formatPrice(price: number, locale?: string, currency?: string): string;
703
803
 
704
- export { CACHE_CONFIG, type CacheTier, type CustomerDocument, type MenuItem, type OrderHeader, type OrderLine, type OrderNote, type OrderPayment, type TApiResponse, type TAttribute, type TAttributeValue, type TCartHdrUid, type TCartLine, type TCartLookUp, type TCategory, type TCategoryChild, type TInvMast, type TInvMastDoc, type TInventorySupplier, type TItemAccessory, type TItemAttribute, type TItemAttributes, type TItemCategory, type TItemDetails, type TItemRelatedProduct, type TItemUom, type TItemsFilters, type TLibraryPriceBreak, type TLibraryPriceData, type TLtlRatesResponse, type TLtlShipmentData, type TMetaTags, type TOrderCartLine, type TPriceData, type TProductCategory, type TProductItem, type TProductStockData, type TRelatedProduct, type TSearchSuggestion, type TSearchSuggestionsResponse, type TShippingMethod, type TStock, type TStockData, type TTax, type TTaxItem, type TWebDesc, formatPrice };
804
+ export { CACHE_CONFIG, type CacheTier, type CustomerDocument, type MenuItem, type OrderHeader, type OrderLine, type OrderNote, type OrderPayment, type TApiResponse, type TAttribute, type TAttributeValue, type TCartHdrUid, type TCartLine, type TCartLookUp, type TCategory, type TCategoryChild, type TInvMast, type TInvMastDoc, type TInventorySupplier, type TItemAccessory, type TItemAttribute, type TItemAttributes, type TItemCategory, type TItemDetails, type TItemRelatedProduct, type TItemUom, type TItemsFilters, type TJoomlaContent, type TJoomlaContentFilters, type TLibraryPriceBreak, type TLibraryPriceData, type TLtlRatesResponse, type TLtlShipmentData, type TMenu, type TMetaTags, type TOrderCartLine, type TPriceData, type TProductCategory, type TProductItem, type TProductStockData, type TProfileValues, type TRelatedProduct, type TSearchSuggestion, type TSearchSuggestionsResponse, type TShippingMethod, type TSmartyStreets, type TStock, type TStockData, type TTax, type TTaxItem, type TUserProfile, type TWebDesc, formatPrice };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleapps-com/augur-utils",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Shared types, cache configuration, and utility functions for Augur ecommerce sites",
5
5
  "license": "MIT",
6
6
  "repository": {