@sparkrewards/sra-sdk 0.0.7 → 0.0.9

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.
@@ -847,22 +847,18 @@ var ShopDetails;
847
847
  ]), new server_common_1.CompositeStructureValidator(new server_common_1.NoOpValidator(), ShopHoursItem.validate));
848
848
  break;
849
849
  }
850
- case "sent_setup": {
851
- memberValidators["sent_setup"] = new server_common_1.NoOpValidator();
852
- break;
853
- }
854
- case "setup": {
855
- memberValidators["setup"] = new server_common_1.CompositeValidator([
856
- new server_common_1.RequiredValidator(),
857
- ]);
858
- break;
859
- }
860
850
  case "tags": {
861
851
  memberValidators["tags"] = new server_common_1.CompositeCollectionValidator(new server_common_1.CompositeValidator([
862
852
  new server_common_1.RequiredValidator(),
863
853
  ]), new server_common_1.NoOpValidator());
864
854
  break;
865
855
  }
856
+ case "favorite": {
857
+ memberValidators["favorite"] = new server_common_1.CompositeValidator([
858
+ new server_common_1.RequiredValidator(),
859
+ ]);
860
+ break;
861
+ }
866
862
  }
867
863
  }
868
864
  return memberValidators[member];
@@ -884,9 +880,8 @@ var ShopDetails;
884
880
  ...getMemberValidator("phone_number").validate(obj.phone_number, `${path}/phone_number`),
885
881
  ...getMemberValidator("location").validate(obj.location, `${path}/location`),
886
882
  ...getMemberValidator("shop_hours").validate(obj.shop_hours, `${path}/shop_hours`),
887
- ...getMemberValidator("sent_setup").validate(obj.sent_setup, `${path}/sent_setup`),
888
- ...getMemberValidator("setup").validate(obj.setup, `${path}/setup`),
889
883
  ...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
884
+ ...getMemberValidator("favorite").validate(obj.favorite, `${path}/favorite`),
890
885
  ];
891
886
  };
892
887
  })(ShopDetails = exports.ShopDetails || (exports.ShopDetails = {}));
@@ -1840,23 +1840,21 @@
1840
1840
  },
1841
1841
  "description": "List of shop hours for all days"
1842
1842
  },
1843
- "sent_setup": {
1844
- "type": "boolean"
1845
- },
1846
- "setup": {
1847
- "type": "boolean"
1848
- },
1849
1843
  "tags": {
1850
1844
  "type": "array",
1851
1845
  "items": {
1852
1846
  "type": "string"
1853
1847
  }
1848
+ },
1849
+ "favorite": {
1850
+ "type": "boolean"
1854
1851
  }
1855
1852
  },
1856
1853
  "required": [
1857
1854
  "active",
1858
1855
  "country_code",
1859
1856
  "description",
1857
+ "favorite",
1860
1858
  "id",
1861
1859
  "location",
1862
1860
  "logo",
@@ -1864,7 +1862,6 @@
1864
1862
  "org_id",
1865
1863
  "org_name",
1866
1864
  "preview",
1867
- "setup",
1868
1865
  "shop_hours",
1869
1866
  "shop_name",
1870
1867
  "tags"
@@ -1928,23 +1925,21 @@
1928
1925
  },
1929
1926
  "description": "List of shop hours for all days"
1930
1927
  },
1931
- "sent_setup": {
1932
- "type": "boolean"
1933
- },
1934
- "setup": {
1935
- "type": "boolean"
1936
- },
1937
1928
  "tags": {
1938
1929
  "type": "array",
1939
1930
  "items": {
1940
1931
  "type": "string"
1941
1932
  }
1933
+ },
1934
+ "favorite": {
1935
+ "type": "boolean"
1942
1936
  }
1943
1937
  },
1944
1938
  "required": [
1945
1939
  "active",
1946
1940
  "country_code",
1947
1941
  "description",
1942
+ "favorite",
1948
1943
  "id",
1949
1944
  "location",
1950
1945
  "logo",
@@ -1952,7 +1947,6 @@
1952
1947
  "org_id",
1953
1948
  "org_name",
1954
1949
  "preview",
1955
- "setup",
1956
1950
  "shop_hours",
1957
1951
  "shop_name",
1958
1952
  "tags"
@@ -1929,6 +1929,7 @@ const serializeGetShopResponse = async (input, ctx) => {
1929
1929
  'banner': [],
1930
1930
  'country_code': [],
1931
1931
  'description': [],
1932
+ 'favorite': [],
1932
1933
  'id': [],
1933
1934
  'latitude': _ => (0, smithy_client_1.serializeFloat)(_),
1934
1935
  'location': _ => se_LocationDetails(_, context),
@@ -1939,8 +1940,6 @@ const serializeGetShopResponse = async (input, ctx) => {
1939
1940
  'org_name': [],
1940
1941
  'phone_number': [],
1941
1942
  'preview': [],
1942
- 'sent_setup': [],
1943
- 'setup': [],
1944
1943
  'shop_hours': _ => se_ShopHoursList(_, context),
1945
1944
  'shop_name': [],
1946
1945
  'tags': _ => se_StringList(_, context),
@@ -1977,6 +1976,7 @@ const serializeGetShopPublicResponse = async (input, ctx) => {
1977
1976
  'banner': [],
1978
1977
  'country_code': [],
1979
1978
  'description': [],
1979
+ 'favorite': [],
1980
1980
  'id': [],
1981
1981
  'latitude': _ => (0, smithy_client_1.serializeFloat)(_),
1982
1982
  'location': _ => se_LocationDetails(_, context),
@@ -1987,8 +1987,6 @@ const serializeGetShopPublicResponse = async (input, ctx) => {
1987
1987
  'org_name': [],
1988
1988
  'phone_number': [],
1989
1989
  'preview': [],
1990
- 'sent_setup': [],
1991
- 'setup': [],
1992
1990
  'shop_hours': _ => se_ShopHoursList(_, context),
1993
1991
  'shop_name': [],
1994
1992
  'tags': _ => se_StringList(_, context),
@@ -840,22 +840,18 @@ export var ShopDetails;
840
840
  ]), new __CompositeStructureValidator(new __NoOpValidator(), ShopHoursItem.validate));
841
841
  break;
842
842
  }
843
- case "sent_setup": {
844
- memberValidators["sent_setup"] = new __NoOpValidator();
845
- break;
846
- }
847
- case "setup": {
848
- memberValidators["setup"] = new __CompositeValidator([
849
- new __RequiredValidator(),
850
- ]);
851
- break;
852
- }
853
843
  case "tags": {
854
844
  memberValidators["tags"] = new __CompositeCollectionValidator(new __CompositeValidator([
855
845
  new __RequiredValidator(),
856
846
  ]), new __NoOpValidator());
857
847
  break;
858
848
  }
849
+ case "favorite": {
850
+ memberValidators["favorite"] = new __CompositeValidator([
851
+ new __RequiredValidator(),
852
+ ]);
853
+ break;
854
+ }
859
855
  }
860
856
  }
861
857
  return memberValidators[member];
@@ -877,9 +873,8 @@ export var ShopDetails;
877
873
  ...getMemberValidator("phone_number").validate(obj.phone_number, `${path}/phone_number`),
878
874
  ...getMemberValidator("location").validate(obj.location, `${path}/location`),
879
875
  ...getMemberValidator("shop_hours").validate(obj.shop_hours, `${path}/shop_hours`),
880
- ...getMemberValidator("sent_setup").validate(obj.sent_setup, `${path}/sent_setup`),
881
- ...getMemberValidator("setup").validate(obj.setup, `${path}/setup`),
882
876
  ...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
877
+ ...getMemberValidator("favorite").validate(obj.favorite, `${path}/favorite`),
883
878
  ];
884
879
  };
885
880
  })(ShopDetails || (ShopDetails = {}));
@@ -1840,23 +1840,21 @@
1840
1840
  },
1841
1841
  "description": "List of shop hours for all days"
1842
1842
  },
1843
- "sent_setup": {
1844
- "type": "boolean"
1845
- },
1846
- "setup": {
1847
- "type": "boolean"
1848
- },
1849
1843
  "tags": {
1850
1844
  "type": "array",
1851
1845
  "items": {
1852
1846
  "type": "string"
1853
1847
  }
1848
+ },
1849
+ "favorite": {
1850
+ "type": "boolean"
1854
1851
  }
1855
1852
  },
1856
1853
  "required": [
1857
1854
  "active",
1858
1855
  "country_code",
1859
1856
  "description",
1857
+ "favorite",
1860
1858
  "id",
1861
1859
  "location",
1862
1860
  "logo",
@@ -1864,7 +1862,6 @@
1864
1862
  "org_id",
1865
1863
  "org_name",
1866
1864
  "preview",
1867
- "setup",
1868
1865
  "shop_hours",
1869
1866
  "shop_name",
1870
1867
  "tags"
@@ -1928,23 +1925,21 @@
1928
1925
  },
1929
1926
  "description": "List of shop hours for all days"
1930
1927
  },
1931
- "sent_setup": {
1932
- "type": "boolean"
1933
- },
1934
- "setup": {
1935
- "type": "boolean"
1936
- },
1937
1928
  "tags": {
1938
1929
  "type": "array",
1939
1930
  "items": {
1940
1931
  "type": "string"
1941
1932
  }
1933
+ },
1934
+ "favorite": {
1935
+ "type": "boolean"
1942
1936
  }
1943
1937
  },
1944
1938
  "required": [
1945
1939
  "active",
1946
1940
  "country_code",
1947
1941
  "description",
1942
+ "favorite",
1948
1943
  "id",
1949
1944
  "location",
1950
1945
  "logo",
@@ -1952,7 +1947,6 @@
1952
1947
  "org_id",
1953
1948
  "org_name",
1954
1949
  "preview",
1955
- "setup",
1956
1950
  "shop_hours",
1957
1951
  "shop_name",
1958
1952
  "tags"
@@ -1896,6 +1896,7 @@ export const serializeGetShopResponse = async (input, ctx) => {
1896
1896
  'banner': [],
1897
1897
  'country_code': [],
1898
1898
  'description': [],
1899
+ 'favorite': [],
1899
1900
  'id': [],
1900
1901
  'latitude': _ => __serializeFloat(_),
1901
1902
  'location': _ => se_LocationDetails(_, context),
@@ -1906,8 +1907,6 @@ export const serializeGetShopResponse = async (input, ctx) => {
1906
1907
  'org_name': [],
1907
1908
  'phone_number': [],
1908
1909
  'preview': [],
1909
- 'sent_setup': [],
1910
- 'setup': [],
1911
1910
  'shop_hours': _ => se_ShopHoursList(_, context),
1912
1911
  'shop_name': [],
1913
1912
  'tags': _ => se_StringList(_, context),
@@ -1943,6 +1942,7 @@ export const serializeGetShopPublicResponse = async (input, ctx) => {
1943
1942
  'banner': [],
1944
1943
  'country_code': [],
1945
1944
  'description': [],
1945
+ 'favorite': [],
1946
1946
  'id': [],
1947
1947
  'latitude': _ => __serializeFloat(_),
1948
1948
  'location': _ => se_LocationDetails(_, context),
@@ -1953,8 +1953,6 @@ export const serializeGetShopPublicResponse = async (input, ctx) => {
1953
1953
  'org_name': [],
1954
1954
  'phone_number': [],
1955
1955
  'preview': [],
1956
- 'sent_setup': [],
1957
- 'setup': [],
1958
1956
  'shop_hours': _ => se_ShopHoursList(_, context),
1959
1957
  'shop_name': [],
1960
1958
  'tags': _ => se_StringList(_, context),
@@ -356,9 +356,8 @@ export interface ShopDetails {
356
356
  * @public
357
357
  */
358
358
  shop_hours: (ShopHoursItem)[] | undefined;
359
- sent_setup?: boolean;
360
- setup: boolean | undefined;
361
359
  tags: (string)[] | undefined;
360
+ favorite: boolean | undefined;
362
361
  }
363
362
  export declare namespace ShopDetails {
364
363
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sparkrewards/sra-sdk",
3
3
  "description": "@sparkrewards/sra-sdk server",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",