@react-pakistan/util-functions 1.22.14 → 1.22.16

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.
@@ -0,0 +1,7 @@
1
+ export declare enum API_METHODS {
2
+ DELETE = "DELETE",
3
+ GET = "GET",
4
+ PATCH = "PATCH",
5
+ POST = "POST",
6
+ UPDATE = "UPDATE"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_METHODS = void 0;
4
+ var API_METHODS;
5
+ (function (API_METHODS) {
6
+ API_METHODS["DELETE"] = "DELETE";
7
+ API_METHODS["GET"] = "GET";
8
+ API_METHODS["PATCH"] = "PATCH";
9
+ API_METHODS["POST"] = "POST";
10
+ API_METHODS["UPDATE"] = "UPDATE";
11
+ })(API_METHODS || (exports.API_METHODS = API_METHODS = {}));
@@ -1,4 +1,6 @@
1
+ export * from './api-methods';
1
2
  export * from './react-pakistan';
2
3
  export * from './react-pakistan-meta';
3
4
  export * from './social-media-colors';
4
5
  export * from './social-media-sizes';
6
+ export * from './user-roles';
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-methods"), exports);
17
18
  __exportStar(require("./react-pakistan"), exports);
18
19
  __exportStar(require("./react-pakistan-meta"), exports);
19
20
  __exportStar(require("./social-media-colors"), exports);
20
21
  __exportStar(require("./social-media-sizes"), exports);
22
+ __exportStar(require("./user-roles"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum USER_ROLES {
2
+ ADMIN = "Admin",
3
+ MANAGER = "Manager",
4
+ USER = "User"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_ROLES = void 0;
4
+ var USER_ROLES;
5
+ (function (USER_ROLES) {
6
+ USER_ROLES["ADMIN"] = "Admin";
7
+ USER_ROLES["MANAGER"] = "Manager";
8
+ USER_ROLES["USER"] = "User";
9
+ })(USER_ROLES || (exports.USER_ROLES = USER_ROLES = {}));
@@ -0,0 +1,6 @@
1
+ interface Params {
2
+ firstName: string;
3
+ lastName: string;
4
+ }
5
+ export declare const getFullName: ({ firstName, lastName, }: Params) => string;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFullName = void 0;
4
+ const getFullName = ({ firstName, lastName, }) => `${firstName} ${lastName}`;
5
+ exports.getFullName = getFullName;
@@ -11,6 +11,7 @@ export * from './generate-faq-schema';
11
11
  export * from './generate-grid';
12
12
  export * from './generate-organization-schema';
13
13
  export * from './get-day-name';
14
+ export * from './get-full-name';
14
15
  export * from './get-href';
15
16
  export * from './get-month-name';
16
17
  export * from './get-pathname';
package/general/index.js CHANGED
@@ -28,6 +28,7 @@ __exportStar(require("./generate-faq-schema"), exports);
28
28
  __exportStar(require("./generate-grid"), exports);
29
29
  __exportStar(require("./generate-organization-schema"), exports);
30
30
  __exportStar(require("./get-day-name"), exports);
31
+ __exportStar(require("./get-full-name"), exports);
31
32
  __exportStar(require("./get-href"), exports);
32
33
  __exportStar(require("./get-month-name"), exports);
33
34
  __exportStar(require("./get-pathname"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.14",
3
+ "version": "1.22.16",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {